4 ms·
I tried all the examples using pandoc --from markdown --to html --mathjax i.e., using pandoc Markdown[1] with MathJax enabled, and it has none of the proble
by bewuethr 4y ago
I tried all the examples using
pandoc --from markdown --to html --mathjax
i.e., using pandoc Markdown[1] with MathJax enabled, and it has none of the problems described in the article (see output[2]). The problem doesn't seem to be due to MathJax, and even using GitHub Flavored Markdown as the input format to pandoc produces the correct results.
[1]: https://pandoc.org/MANUAL.html#pandocs-markdown https://pandoc.org/MANUAL.html#pandocs-markdown
[2]: https://gist.github.com/bewuethr/691b4870828d7b2261113f14eef56b5f https://gist.github.com/bewuethr/691b4870828d7b2261113f14eef...
- nschloe 4y agoThe difference between GitHub and pandoc with GitHub-flavored Markdown as input is that pandoc doesn't sanitize as aggressively as GitHub does. For example, pandoc doesn't remove the backslash-escapes before non-letters as in `\{`. Not sure if GitHub will compromise here, though.