gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 274 forks source link

Line breaks in html locally but not on github.io #674

Closed richard-warren closed 4 years ago

richard-warren commented 4 years ago

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!

richard-warren commented 4 years ago

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.