mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
换回写法
This commit is contained in:
parent
9f993bedba
commit
89268f703b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user