jbt / markdown-editor

Live (Github-flavored) Markdown Editor
http://jbt.github.com/markdown-editor
ISC License
2.82k stars 643 forks source link

support for LateX #127

Open houcy opened 3 years ago

houcy commented 3 years ago

This md editor doesn't support LateX, see example below. Would you enhance to support LateX?

$$E=mc^2$$

Thanks!

sskras commented 3 years ago

There is some pages that implement Elm-Markdown dialect. Eg:

It would be nice to have the support ported here. But given two different languages (javascript and elm) I guess that would be hard.

sskras commented 3 years ago

OTOH this web-app seems to use "markdown-it". Thus it should be possible to use its plugin "markdown-it-texmath": https://www.npmjs.com/package/markdown-it-texmath

Or maybe other, older one called "markdown-it-math": https://www.npmjs.com/package/markdown-it-math