chat-ui
03a28b25 - feat: add KaTeX support for block and inline math rendering in Markdown (#1643)

Commit
1 year ago
feat: add KaTeX support for block and inline math rendering in Markdown (#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 <sarrazin.nathan@gmail.com>
Author
Parents
Loading