latex support

This commit is contained in:
josc146
2024-03-13 21:37:48 +08:00
parent 5692579f56
commit 4bed070556
4 changed files with 188 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ const embedded = [
'react-beautiful-dnd',
'react-draggable',
'@magenta/music', 'html-midi-player',
'react-markdown', 'rehype-highlight', 'rehype-raw', 'remark-breaks', 'remark-gfm'
'react-markdown', 'rehype-highlight', 'rehype-raw', 'remark-breaks', 'remark-gfm', 'remark-math', 'rehype-katex', 'katex'
];
function renderChunks(deps: Record<string, string>) {