mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +00:00
Allow implicit figures when alt text differs from caption (in this case, we use an image attribute to add the alt). Closes #11140.
35 lines
438 B
Markdown
35 lines
438 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*
|
|
|
|

|
|
:::
|
|
|
|
::: thm2
|
|
**Theorem 1**. a
|
|
|
|

|
|
:::
|
|
```
|