mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
@@ -6,7 +6,6 @@ import { CodeBlock } from '../markdown/CodeBlock'
|
|||||||
import remarkGfm from 'remark-gfm'
|
import remarkGfm from 'remark-gfm'
|
||||||
import remarkMath from 'remark-math'
|
import remarkMath from 'remark-math'
|
||||||
import rehypeMathjax from 'rehype-mathjax'
|
import rehypeMathjax from 'rehype-mathjax'
|
||||||
import rehypeRaw from 'rehype-raw'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if text likely contains LaTeX math notation
|
* Checks if text likely contains LaTeX math notation
|
||||||
@@ -91,7 +90,7 @@ export const MemoizedReactMarkdown = memo(
|
|||||||
|
|
||||||
const rehypePlugins = useMemo(() => {
|
const rehypePlugins = useMemo(() => {
|
||||||
if (props.rehypePlugins) return props.rehypePlugins
|
if (props.rehypePlugins) return props.rehypePlugins
|
||||||
return shouldEnableMath ? [rehypeMathjax, rehypeRaw] : [rehypeRaw]
|
return shouldEnableMath ? [rehypeMathjax] : []
|
||||||
}, [props.rehypePlugins, shouldEnableMath])
|
}, [props.rehypePlugins, shouldEnableMath])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user