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

Syntax Highlighting Problem after Reading Issue 1008 #1316

Closed
ktrNozomi opened this issue Jul 30, 2023 · 2 comments
Closed

Syntax Highlighting Problem after Reading Issue 1008 #1316

ktrNozomi opened this issue Jul 30, 2023 · 2 comments
Labels
Area: Math Res: As expected The existing behavior is by design or as expected.

Comments

@ktrNozomi
Copy link

Thanks for your contribution to the awesome extension!

After carefully reading issue #1008, I have disabled the built markdown math extension. The highlighting gets much better now. However, there's still a defect shown in the following picture:

2023-07-30-13-17-31

Are there any solutions?

@yzhang-gh
Copy link
Owner

Thanks for the feedback.

Although it may render correctly, it is not by design that the inline math takes multiple lines. The syntax highlighting follows the rules described in https://github.com/waylonflinn/markdown-it-katex#syntax

@yzhang-gh yzhang-gh added Area: Math Res: As expected The existing behavior is by design or as expected. labels Jul 30, 2023
@ktrNozomi
Copy link
Author

Thanks for the reply. Then I think it's a principle that KaTeX should be careful to design (and with my opinion it's outdated).

Best wishes with this extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Math Res: As expected The existing behavior is by design or as expected.
Projects
None yet
Development

No branches or pull requests

2 participants