-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
How to integrate support for Mermaid rendering?
My server rendered the blog in this way
const file = await unified()
.use(remarkParse)
.use(remarkGfm) // ๅพ
ๅใๅ ้ค็บฟใ่กจๆ ผโฆ
.use(rehypeMermaid, {
// The default strategy is 'inline-svg'
// strategy: 'img-png'
// strategy: 'img-svg'
// strategy: 'inline-svg'
// strategy: 'pre-mermaid'
})
.use(remarkRehype)
.use(rehypePrettyCode, {
transformers: [
transformerCopyButton({
visibility: 'always',
feedbackDuration: 3_000,
}),
],
})
.use(rehypeStringify)
.process(markdown);Reactions are currently unavailable