-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Description
Consider this minimal tex file:
\documentclass[english]{article}
\begin{document}
\begin{align}
x &= 3\\
y &= 2
\end{align}
\end{document}
pandoc test.tex -o test.md
produces test.md file with the following content:
$$\begin{aligned}
x &= 3\\
y &= 2\end{aligned}$$
If I use a filter, the filter receives aligned rather than align so it's already too late.
The only workaround I found is to wrap the env in $$ but to do that programmatically I'd need to properly parse the tex file.
Is this a bug or what?
I forgot:
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
on Windows 10.