Compare commits

...

1 Commits

Author SHA1 Message Date
Henry fd86e67bd8 remove rehyperaw from reactmarkdown 2025-09-18 17:30:55 +01:00
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ import { CodeBlock } from '../markdown/CodeBlock'
import remarkGfm from 'remark-gfm'
import remarkMath from 'remark-math'
import rehypeMathjax from 'rehype-mathjax'
import rehypeRaw from 'rehype-raw'
/**
* Checks if text likely contains LaTeX math notation
@ -91,7 +90,7 @@ export const MemoizedReactMarkdown = memo(
const rehypePlugins = useMemo(() => {
if (props.rehypePlugins) return props.rehypePlugins
return shouldEnableMath ? [rehypeMathjax, rehypeRaw] : [rehypeRaw]
return shouldEnableMath ? [rehypeMathjax] : []
}, [props.rehypePlugins, shouldEnableMath])
return (