Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formulas that contain markdown characters (e.g. '_' for italic) not rendered correctly #15

Closed
thilo-behnke opened this issue Aug 30, 2019 · 1 comment

Comments

@thilo-behnke
Copy link

Hi,

We found the following issue in our project: ls1intum/Artemis#768

E.g. the formula $ a_0 + a_1 $ is not displayed correctly for us, as the html that the extension receives already splits this expression into 3 separate nodes:

0: text -> "$ a"
1: em -> "0 + a"
2: text -> "1 $"

I wonder if the extension should use the type 'lang' instead of 'output', but would be interested in your opinion on this matter:
https://github.com/obedm503/showdown-katex/blob/master/src/showdown-katex.js#L71

@obedm503
Copy link
Owner

This is because $ are not valid delimiters, use $$ instead. This is an error with the documentation.

Testing in the demo site
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants