You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sanitize LaTeX before rendering; fall back to source text on parse error
- Some informal descriptions contain \mathbb{X} inside \text{...}, which
KaTeX (correctly) refuses to parse. Rewrite those cases to the Unicode
equivalent (ℝ, ℂ, ℤ, ℕ, ℚ, etc.) before rendering so the text renders
instead of showing as a red error.
- Flip throwOnError to true and fall back to escaped plain source on
failure, so truly unparseable LaTeX degrades to readable text rather
than KaTeX's red inline error.
- Set strict: "ignore" so minor parser warnings don't trip rendering.
0 commit comments