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

User can unintentionally create a math inline node when typing content between two $ #406

Open
cindywu opened this issue Feb 5, 2021 · 2 comments

Comments

@cindywu
Copy link
Member

cindywu commented Feb 5, 2021

When a user types in the editor any content between two $ will turn into a math inline node. This is problematic when a user tries to write a sentence such as:

We consistently spend $10,000/month make $15/month from 3 GitHub sponsors.

Our editor evaluates 10,000/month make as a math inline node. 🤦🏻‍♀️

I'm not exactly sure what the ideal UX is here. Typora has the same bug.

Kapture 2021-02-04 at 18 17 07

typora:
Kapture 2021-02-04 at 18 21 29

@alexkrolick
Copy link
Collaborator

Can you escape out of it using \$?

@alexkrolick
Copy link
Collaborator

https://katex.org/docs/autorender.html#api

It might use KaTeX under the hood, in which case you can turn off matching $..$ and use $$..$$ only

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