readthedocs / recommonmark

A markdown parser for docutils
https://recommonmark.readthedocs.io/
MIT License
340 stars 252 forks source link

make latex escapes `$` which breaks math rendering #148

Closed NateZimmer closed 2 years ago

NateZimmer commented 5 years ago

So after some config, the following generates properly in one's html export

Test.md

## Equation Test
$$
myEquation=\frac{num}{denom}
$$

Will render properly with mathjax when one does make.bat html

image

However , when one does make.bat latex

the generated latex is the following:


\chapter{Test}
\label{\detokenize{test:test}}
\$\$
myEquation=\textbackslash{}frac\{num\}\{denom\}
\$\$

Which naturally doesn't render correctly since the $ is escaped. Any ideas?