e9c0f9f97b
When a block only has a single class and no other attributes, it is not necessary to wrap the class attribute in curly braces – the class name can be placed after the opening mark as is. This will result in bit cleaner output when pandoc is used as a markdown pretty-printer.
448 B
448 B
% 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*
![image](1.png)
:::
::: thm2
**Theorem 1**. a
![image](1.png)
:::