pandoc/test/command/6925.md
Jan Tojnar e9c0f9f97b
Markdown writer: Cleaner (code)blocks with single class (#7242)
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.
2021-04-25 10:36:06 -07:00

34 lines
448 B
Markdown

```
% 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)
:::
```