News for hackers. Stuff that matters.
Re:Math on GitHub: The Good, the Bad and the Ugly by bewuethr on Sunday May 22, 2022 @02:38PM (#31471324)
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

[2]: https://gist.github.com/bewuethr/691b4870828d7b2261113f14eef...

Re:Math on GitHub: The Good, the Bad and the Ugly by nschloe on Monday May 23, 2022 @04:01AM (#31476389)
The 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.