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

could not parse xxx$-2x<4$xxx #2

Closed
xiaokaike opened this issue Apr 13, 2016 · 2 comments
Closed

could not parse xxx$-2x<4$xxx #2

xiaokaike opened this issue Apr 13, 2016 · 2 comments

Comments

@xiaokaike
Copy link

xxx$-2x<4$xxx

image

@waylonflinn
Copy link
Owner

waylonflinn commented Apr 14, 2016

Thanks for the bug report!

Test string is:

xxx$-2x<4$xxx

paulsohn pushed a commit to paulsohn/markdown-it-katex that referenced this issue Apr 21, 2016
* Since the code is suggesting using only $ - $ for inline, $$ - $$ for block math syntax,
 specific delimiter for $ - $ and $$ - $$ is required, not general escape logic.
 also it will fix the issue waylonflinn#2.

* Some code optimization and variable name change was done.

* I found that 'throwOnError:false' option doesn't actually work on katex. They will still throw an error if the syntax is invalid.
 So instead of sending this directly, I fixed this code to catch the error internally, return the original latex token, and log it on the console when throwOnError option is explicitly set to true.
@waylonflinn
Copy link
Owner

fixed with #3

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