feat: 重构部分代码,略微完成文章md渲染部分

This commit is contained in:
539943419 committed 2025-01-12 23:31:37 +08:00
1 parent 6be2c9a0d7
commit c2be826bc5
12 files changed
+200 -11

No files matched your search

+10
View File
@@ -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;
}