mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-09 14:58: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(remarkGfm)
|
||||
.use(remarkRehype, { allowDangerousHtml: true })
|
||||
.use(rehypePrism)
|
||||
.use(rehypePrism, {
|
||||
ignoreMissing: true,
|
||||
})
|
||||
.use(rehypeRaw)
|
||||
.use(rehypeIgnore, {})
|
||||
.use(rehypeAttrs, { properties: 'attr' })
|
||||
|
||||
Reference in New Issue
Block a user