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

fix: update katex to v0.16.9 and prevent throwing ParseError #227

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

fisheryv
Copy link
Contributor

@fisheryv fisheryv commented Jan 5, 2024

Update katex to v0.16.9 and prevent throwing ParseError when it encounters an unsupported command or invalid LaTeX.

Actually there are two options if katex encounters an unsupported command:

  1. throwOnError = true: Katex will throw a ParseError and we catch the error for further processing;
  2. throwOnError = false: Katex will render unsupported commands as text in errorColor.

Here I choose the latter. It expose issues to the front-end so that I can find the error at a glance.

Copy link

vercel bot commented Jan 5, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @Innei on Vercel.

@Innei first needs to authorize it.

Copy link
Owner

@Innei Innei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3Q

@Innei Innei merged commit 8873514 into Innei:main Jan 5, 2024
1 of 2 checks passed
@Innei Innei changed the title ✨ update katex to v0.16.9 and prevent throwing ParseError fix: update katex to v0.16.9 and prevent throwing ParseError Jan 5, 2024
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

Successfully merging this pull request may close these issues.

2 participants