feat: 重构部分代码,略微完成文章md渲染部分
This commit is contained in:
1 parent
6be2c9a0d7
commit
c2be826bc5
12 files changed
+200
-11
No files matched your search
@@ -0,0 +1,10 @@
|
||||
export default async function useMarkdownit() {
|
||||
const md = await import('markdown-it');
|
||||
const markdownit = md.default;
|
||||
const mdit = markdownit({
|
||||
html: true,
|
||||
linkify: true,
|
||||
typographer: true
|
||||
});
|
||||
return mdit;
|
||||
}
|
||||
Reference in new issue
Block a user