diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-12-05 09:53:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-12-05 09:53:39 -0800 |
commit | ddb76cb356a82f6a9e51a6f3626dd154816e9205 (patch) | |
tree | c77c9bacb733c3d4a11269c8ad2aed9cc43dd8e0 /test | |
parent | 6f35600204132c5a0907bb7cccb2e10ffb27506a (diff) | |
download | pandoc-ddb76cb356a82f6a9e51a6f3626dd154816e9205.tar.gz |
LaTeX reader: don't apply theorem default styling to a figure inside.
If we put an image in italics, then when rendering to Markdown
we no longer get an implicit figure.
Closes #6925.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/6925.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/command/6925.md b/test/command/6925.md new file mode 100644 index 000000000..458a0b91d --- /dev/null +++ b/test/command/6925.md @@ -0,0 +1,34 @@ +``` +% pandoc -f latex -t markdown +\documentclass{amsart} +\newtheorem{thm}{Theorem}[section] +\theoremstyle{definition} +\newtheorem{thm2}[section]{Theorem} +\begin{document} +\begin{thm} +a +\begin{figure} +\includegraphics[]{1.png} +\end{figure} +\end{thm} + +\begin{thm2} +a +\begin{figure} +\includegraphics[]{1.png} +\end{figure} +\end{thm2} +\end{document} +^D +::: {.thm} +**Theorem 1**. *a* + + +::: + +::: {.thm2} +**Theorem 1**. a + + +::: +``` |