Add tests for #4589 and #4594 (currently failing).

This commit is contained in:
John MacFarlane 2018-04-25 23:04:08 -07:00
parent d0940c6e00
commit aba0f7e063
2 changed files with 38 additions and 0 deletions

14
test/command/4589.md Normal file
View file

@ -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.
```

24
test/command/4594.md Normal file
View file

@ -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.
```