mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-06 06:58:21 +00:00
apply slug after sanitize
This commit is contained in:
parent
7c45b3679f
commit
76d5288aba
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,6 @@ const Markdown = ({ text, textAtom, showTocAtom, style, className, resolveOpts,
|
|||
remarkPlugins={[remarkGfm, [RemarkFlexibleToc, { tocRef: tocRef.current }]]}
|
||||
rehypePlugins={[
|
||||
rehypeRaw,
|
||||
() => rehypeSlug({ prefix: idPrefix }),
|
||||
rehypeHighlight,
|
||||
() =>
|
||||
rehypeSanitize({
|
||||
|
|
@ -256,6 +255,7 @@ const Markdown = ({ text, textAtom, showTocAtom, style, className, resolveOpts,
|
|||
},
|
||||
tagNames: [...(defaultSchema.tagNames || []), "span"],
|
||||
}),
|
||||
() => rehypeSlug({ prefix: idPrefix }),
|
||||
]}
|
||||
components={markdownComponents}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue