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

前端 未结 2 2047
悲&欢浪女
悲&欢浪女 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 18:35

    Markdown won't process anything in block-level HTML tag, so simply wrapping Mathjax syntax in

    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.

提交回复
热议问题