Add tests for #4589 and #4594 (currently failing).
commitaba0f7e063a4ef4eb8bebafc5e7da067ff846030
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 25 Apr 2018, 23:04 (9 years ago)
parentd0940c6
test/command/4589.mdnew file+14
@@ -0,0 +1,14 @@
1+```
2+% pandoc -f markdown -t latex
3+\newcommand{\one}[1]{#1}
4+\newcommand{\two}[1]{#1}
5+
6+Formatting *is* working **here**. But sticking \one{two }\two{commands}
7+together *breaks* formatting.
8+^D
9+\newcommand{\one}[1]{#1}
10+\newcommand{\two}[1]{#1}
11+
12+Formatting \emph{is} working \textbf{here}. But sticking two commands
13+together \emph{breaks} formatting.
14+```
test/command/4594.mdnew file+24
@@ -0,0 +1,24 @@
1+```
2+% pandoc -f markdown -t latex
3+Some **bold** text here.
4+
5+\begin{figure}[htbp]
6+\centering
7+\def\svgwidth{\columnwidth}
8+\import{img/}{vectors.pdf_tex}
9+\caption{Some caption.}
10+\end{figure}
11+
12+Some *italic* text here.
13+^D
14+Some \textbf{bold} text here.
15+
16+\begin{figure}[htbp]
17+\centering
18+\def\svgwidth{\columnwidth}
19+\import{img/}{vectors.pdf_tex}
20+\caption{Some caption.}
21+\end{figure}
22+
23+Some \emph{italic} text here.
24+```