abejfehr / markdown-preview-katex

Markdown Preview with LaTeX rendering & no other dependencies!
https://atom.io/packages/markdown-preview-katex
Other
19 stars 1 forks source link

KaTeX is very limited #6

Open szhorvat opened 9 years ago

szhorvat commented 9 years ago

This is just a comment rather than a bug report:

KaTeX is unfortunately extremely limited in what it can render, which makes it rather inconvenient in practice. markdown-preview-plus did use KaTeX originally, but this made it not very useful for actual mathematical note-taking. Some details are discussed here

abejfehr commented 9 years ago

Yup, KaTeX was extremely limited. It's definitely getting much better now though, and I find that it's useful for notes. This comment where you mentioned missing symbols has mostly been addressed by this release of KaTeX.

szhorvat commented 9 years ago

Good to know, I should try it again!

ghost commented 9 years ago

KaTeX still does not support the dollar sign and euro sign, which I would like to use a lot in my notes..

abejfehr commented 9 years ago

The dollar sign should be supported. Try typing the following into their homepage:

\$4.75 \times 10\%

However in this plugin the dollar signs may need to be escaped twice(eg. \\$) for the first time in an expression because of the way they're parsed. This is a serious issue and needs to be looked at.

However, you're correct in saying that the Euro symbol is not yet supported. Perhaps you can create an issue on KaTeX's repository for that, since I don't see an existing one.

ghost commented 9 years ago

Thank you very much! I will create the issue.

abejfehr commented 9 years ago

No problem! :)

I actually just read about it and it seems like incorporating the Euro symbol would be harder than expected since it's in another package entirely. I hope they're able to accommodate this request anyway, it would be very useful.

ghost commented 9 years ago

if someone could add the eurosign in one of the font files, I can add the eurosign in katex, hopefully according to \eurosym with \euro and \EUR{} http://www.theiling.de/eurosym.html