Libbum / AxiomaticSemantics

Personal blog powered by zola
https://axiomatic.neophilus.net
4 stars 2 forks source link

Math mode #3

Closed Libbum closed 6 years ago

Libbum commented 6 years ago

pulldown-cmark doesn't have a math mode at the moment, there's an open PR google/pulldown-cmark#100 that also has a possible stopgap. Regardless, this needs to be fixed.

Libbum commented 6 years ago

Temporary solution is to use the autorenderer and mark up the math on the fly. There's a performance hit here, but should be fine for starters.

Libbum commented 6 years ago

e623565 has this functionality working. I'm monitoring the native PR in pulldown-cmark, so will close this for now and investigate further when there's movement there.

Libbum commented 6 years ago

Just a note you have to escape backslashes in aligned, so at the end of each line you need \\\\ rather than \\.

Also, it looks like the autorenderer isn't happy with sending $ ... $ as an inline option, so we'll need to use \( ... \) for now. Note this is \\( ... \\) in the markdown sections...