aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-04-25 23:04:08 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-04-25 23:04:08 -0700
commitaba0f7e063a4ef4eb8bebafc5e7da067ff846030 (patch)
tree241ab5477705b2b37a81a31b10043b3c2eed9721 /test/command
parentd0940c6e00ab8be5c40727daa65a5a1387645ace (diff)
downloadpandoc-aba0f7e063a4ef4eb8bebafc5e7da067ff846030.tar.gz
Add tests for #4589 and #4594 (currently failing).
Diffstat (limited to 'test/command')
-rw-r--r--test/command/4589.md14
-rw-r--r--test/command/4594.md24
2 files changed, 38 insertions, 0 deletions
diff --git a/test/command/4589.md b/test/command/4589.md
new file mode 100644
index 000000000..ffbe6fe6f
--- /dev/null
+++ b/test/command/4589.md
@@ -0,0 +1,14 @@
+```
+% pandoc -f markdown -t latex
+\newcommand{\one}[1]{#1}
+\newcommand{\two}[1]{#1}
+
+Formatting *is* working **here**. But sticking \one{two }\two{commands}
+together *breaks* formatting.
+^D
+\newcommand{\one}[1]{#1}
+\newcommand{\two}[1]{#1}
+
+Formatting \emph{is} working \textbf{here}. But sticking two commands
+together \emph{breaks} formatting.
+```
diff --git a/test/command/4594.md b/test/command/4594.md
new file mode 100644
index 000000000..3f08b6c12
--- /dev/null
+++ b/test/command/4594.md
@@ -0,0 +1,24 @@
+```
+% pandoc -f markdown -t latex
+Some **bold** text here.
+
+\begin{figure}[htbp]
+\centering
+\def\svgwidth{\columnwidth}
+\import{img/}{vectors.pdf_tex}
+\caption{Some caption.}
+\end{figure}
+
+Some *italic* text here.
+^D
+Some \textbf{bold} text here.
+
+\begin{figure}[htbp]
+\centering
+\def\svgwidth{\columnwidth}
+\import{img/}{vectors.pdf_tex}
+\caption{Some caption.}
+\end{figure}
+
+Some \emph{italic} text here.
+```