magiclen / markdown2html-converter

A tool for converting a Markdown file to a single HTML file with built-in CSS and JS.
MIT License
73 stars 9 forks source link

backtick is interpreted as code instead of asciimath #9

Open denizsincar29 opened 1 year ago

denizsincar29 commented 1 year ago

In mathjax when you write:

`sqrt3+pi`

it would convert to this text as asciimath. but rather i don't know why, but it converts into

<code>sqrt3+pi</code>

please fix this bug. I want to interpret asciimath as it is.

magiclen commented 1 year ago

It's not a bug.

See https://www.markdownguide.org/basic-syntax/.

And I think the tex-mml-chtml configuration file doesn't support asciimath. I'm not sure but the document says it loads the input/tex and input/mml components. input/asciimath is not included.

denizsincar29 commented 1 year ago

asciimath is built in to mathjax. and it must be configured for asciimath

magiclen commented 1 year ago

This project uses tex-mml-chtml.