Closed Framartin closed 7 years ago
It's an issue with how Hugo's Markdown parser works. The workaround is to use 6 backslashes for a Mathjax linebreak:
$$\begin{eqnarray}
y &=& 1+1 \\\\\\
&=& 2
\end{eqnarray}$$
Thanks a lot for your help. That's very useful :+1: I tried with 2 to 4 backslashes, but I didn't thought about 6.
I made a PR to add this solution to the documentation, thinking of future new users (and to reduce the number of issues related to this problem).
This could really be in the documentation on Hugo too - unfortunately that seems to be dead.
\\\ (3 backslashes) works for me.
I'm trying to write a two lines formula using using the academic theme. The formula is printed in one line in academic, while correctly printed by Mathjax outside academic.
Let's consider, for example, the following LaTeX formula:
On the MathJax Live Demo the formula is correctly generated:
But on my hugo website with academic, the formula is generated like this:
I'm not sure what's the source of the problem. Thanks a lot for your time.