Is there a markdown parser supported on Jekyll that plays nicely with mathjax?

前端 未结 2 2046
悲&欢浪女
悲&欢浪女 2021-02-07 17:42

I use a Jekyll based blog and need a markdown parser that won\'t clobber my Mathjax expressions (for instance, interpreting b_t - b_{t-1} as bt - b&

相关标签:
2条回答
  • 2021-02-07 18:35

    Markdown won't process anything in block-level HTML tag, so simply wrapping Mathjax syntax in <div> </div> protects the Mathjax syntax, regardless of the interpreter. This nicely avoids having to escape the commands that begin and end the Mathjax, such as \( (inline) and \[ (display). Thanks to @lsegal on Github for pointing this out to me.

    0 讨论(0)
  • 2021-02-07 18:41

    Yes there's and it's kramdown, I've gone through the process of configuring it and it's explained at my blog. I've also found you can get Redcarpet to accept inline math using the syntax \\( some math \\). It'll output \( math \)to MathJax. Anyway, I prefer kramdown as it states to support LaTeX.

    0 讨论(0)
提交回复
热议问题