My website (based on this theme) renders fine locally, but on github.io the html source has many missing line breaks, which causes some MathJax equations to break.
For example, the CDATA flag before \begin{aligned} sections is on the same line as the math, causing the equations to be commented out. Others have had this issue (using the same Jekyll theme). I'm not sure if this is a kramdown issue or perhaps something in the CSS causing the line breaks to disappear? I don't understand why this happens locally but not when published to github.
This was not a kramdown issue. My site used aggressive html compression. This removed line breaks that were necessary for proper MathJax rendering. Solution here.
My website (based on this theme) renders fine locally, but on github.io the html source has many missing line breaks, which causes some MathJax equations to break.
For example, the CDATA flag before \begin{aligned} sections is on the same line as the math, causing the equations to be commented out. Others have had this issue (using the same Jekyll theme). I'm not sure if this is a kramdown issue or perhaps something in the CSS causing the line breaks to disappear? I don't understand why this happens locally but not when published to github.
Any help is much appreciated!