goessner / markdown-it-texmath

Support TeX math equations with your Markdown documents.
MIT License
156 stars 28 forks source link

$$ for Math Inline to be compatible with Kramdown #7

Closed varunagrawal closed 6 years ago

varunagrawal commented 6 years ago

Thanks for the great work with this package.

Currently, Kramdown with Mathjax only supports $$ for both inline and block latex rendering, since the argument is that a $ is too pervasive and might inadvertently convert to latex what wasn't supposed to be converted e.g. $25 worth of fruits.

It would be nice to have the option of putting inline math as $$ so that one can then publish the Markdown file to a Jekyll page directly.

Ray-Eldath commented 6 years ago

Absolutely reasonable... I think could provide an option to config which identifier to match.

goessner commented 6 years ago

I finally had a chance to have a closer look into that. It seems to work fine after implementing.

Simply specify the options argument {delimiters:'kramdown'} for having Kramdown support now.

Will update mdmath with that in near future.

Thanks.