mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:39:01 +08:00
fix: html raw render (#8138)
This commit is contained in:
parent
61a0ca9e0d
commit
a771eea4f6
@ -4,7 +4,6 @@ import 'katex/dist/katex.min.css'
|
|||||||
import RemarkMath from 'remark-math'
|
import RemarkMath from 'remark-math'
|
||||||
import RemarkBreaks from 'remark-breaks'
|
import RemarkBreaks from 'remark-breaks'
|
||||||
import RehypeKatex from 'rehype-katex'
|
import RehypeKatex from 'rehype-katex'
|
||||||
import RehypeRaw from 'rehype-raw'
|
|
||||||
import RemarkGfm from 'remark-gfm'
|
import RemarkGfm from 'remark-gfm'
|
||||||
import SyntaxHighlighter from 'react-syntax-highlighter'
|
import SyntaxHighlighter from 'react-syntax-highlighter'
|
||||||
import { atelierHeathLight } from 'react-syntax-highlighter/dist/esm/styles/hljs'
|
import { atelierHeathLight } from 'react-syntax-highlighter/dist/esm/styles/hljs'
|
||||||
@ -231,7 +230,6 @@ export function Markdown(props: { content: string; className?: string }) {
|
|||||||
remarkPlugins={[[RemarkGfm, RemarkMath, { singleDollarTextMath: false }], RemarkBreaks]}
|
remarkPlugins={[[RemarkGfm, RemarkMath, { singleDollarTextMath: false }], RemarkBreaks]}
|
||||||
rehypePlugins={[
|
rehypePlugins={[
|
||||||
RehypeKatex,
|
RehypeKatex,
|
||||||
RehypeRaw as any,
|
|
||||||
// The Rehype plug-in is used to remove the ref attribute of an element
|
// The Rehype plug-in is used to remove the ref attribute of an element
|
||||||
() => {
|
() => {
|
||||||
return (tree) => {
|
return (tree) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user