-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add KaTeX support for block and inline math rendering in Markdo…
…wn (#1643) * feat: add KaTeX support for block and inline math rendering in Markdown * fix: Reintroduce escapeHTML to prevent raw HTML injection - Properly escape user-generated HTML to avoid DOM injection vulnerabilities. - Ensures KaTeX rendering remains unaffected while blocking malicious content. * feat: add KaTeX mhchem extension to enable KaTeX the \ce and \pu functions from the mhchem package. - https://github.com/KaTeX/KaTeX/tree/main/contrib/mhchem --------- Co-authored-by: Nathan Sarrazin <[email protected]>
- Loading branch information
Showing
1 changed file
with
135 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters