换回写法

This commit is contained in:
liaoxuezhi 2022-06-06 11:28:10 +08:00
parent 9f993bedba
commit 89268f703b

View File

@ -10,7 +10,7 @@ export async function markdown(content: string, options?: markdownIt.Options) {
if (!doMarkdown) {
const {default: markdownIt} = await import('markdown-it');
// @ts-ignore
const {default: {html5Media}} = await import('markdown-it-html5-media');
const {html5Media} = await import('markdown-it-html5-media');
doMarkdown = markdownIt();
doMarkdown.use(html5Media);