The support of mathjax in Hugo has been a problem for quite a while. I noticed that blackfriday v2 has native support for these $, $$ math enclosing, which perfectly solves the problem. Does Hugo have plan to support it so that the Hugo user can write math document?
The equations work fine if you escape the backslashes… so \\(
instead of \(
, and so on.
We will do the job to go for BF 2.0, but not we will have to wait for it to be ready/released.
Yes, escaping could be a temporary solution. But think about the situation that you have a big math file in latex and would like to convert it into Hugo markdown. Converting document back and forward is still not convenient.
But think about the situation that you have a big math file in latex and would like to convert it into Hugo markdown.
That’s right. I should have mentioned that the true source of that test I linked above is in Org mode, here. Org can be used like a Markdown-like markup as you see. I then use the Emacs ox-hugo
package to prepend the extra back-slashes automatically in the generated Markdown (the Example Markdown link I posted earlier) for Blackfriday to behave well.