CSRG-Group/dcs-notes.github.io

Equations are broken on the 126 page

Closed this issue · 2 comments

On the one page notes: https://csrg-group.github.io/dcs-notes.github.io/CS126/opnotes

we have equations not rendering correctly:

image

I have included a temporary fix in c29faec, which adds math: true to all one page notes files. It should parse inline math blocks like S and D shown in the screenshot.
image
Math blocks are parsed weirdly by kramdown when iterated through Jekyll collections (not sure if anyone reading this will know how to fix it).

Related files are

  • _layouts/combined.html
  • _layouts/notes.html

Will make an attempt when I have time.

67a71ce should fix the bug. I think using markdownify parses the content twice, so \[ is parsed to [, so mathjax doesn't process it afterwards.
image