mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-11 07:48:48 +08:00
fix: Fix {name} does not correspond to supportd language and throw an error.
This commit is contained in:
@@ -32,7 +32,9 @@ export function markdownToHTML(md: string, css: string, opts: MarkdownToHTMLOpti
|
|||||||
.use(remarkParse)
|
.use(remarkParse)
|
||||||
.use(remarkGfm)
|
.use(remarkGfm)
|
||||||
.use(remarkRehype, { allowDangerousHtml: true })
|
.use(remarkRehype, { allowDangerousHtml: true })
|
||||||
.use(rehypePrism)
|
.use(rehypePrism, {
|
||||||
|
ignoreMissing: true,
|
||||||
|
})
|
||||||
.use(rehypeRaw)
|
.use(rehypeRaw)
|
||||||
.use(rehypeIgnore, {})
|
.use(rehypeIgnore, {})
|
||||||
.use(rehypeAttrs, { properties: 'attr' })
|
.use(rehypeAttrs, { properties: 'attr' })
|
||||||
|
|||||||
Reference in New Issue
Block a user