diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/command/1629.md | 10 | ||||
-rw-r--r-- | test/command/3422.md | 2 | ||||
-rw-r--r-- | test/lhs-test.latex+lhs | 1 |
3 files changed, 12 insertions, 1 deletions
diff --git a/test/command/1629.md b/test/command/1629.md new file mode 100644 index 000000000..34d529b0d --- /dev/null +++ b/test/command/1629.md @@ -0,0 +1,10 @@ +``` +% pandoc -t latex --listings +bla bla `a % b` + +*bla bla `a % b`* +^D +bla bla \passthrough{\lstinline!a \% b!} + +\emph{bla bla \passthrough{\lstinline!a \% b!}} +``` diff --git a/test/command/3422.md b/test/command/3422.md index a010320e9..19f1f4462 100644 --- a/test/command/3422.md +++ b/test/command/3422.md @@ -4,6 +4,6 @@ See #3422 % pandoc -t latex --listings `int main(int argc, const char *argv[]);`{.c} ^D -\lstinline[language=C]!int main(int argc, const char *argv[]);! +\passthrough{\lstinline[language=C]!int main(int argc, const char *argv[]);!} ``` diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs index 3509cb4a6..b0a58ac78 100644 --- a/test/lhs-test.latex+lhs +++ b/test/lhs-test.latex+lhs @@ -24,6 +24,7 @@ breaklinks=true} \urlstyle{same} % don't use monospace font for urls \usepackage{listings} +\newcommand{\passthrough}[1]{#1} \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} \IfFileExists{parskip.sty}{% \usepackage{parskip} |