Revert "chore: remove @vant/markdown-loader package"

This reverts commit 6eec7f3c2f.
This commit is contained in:
chenjiahan
2021-09-30 10:32:29 +08:00
parent 7c45604f8f
commit 6a054ca0e3
10 changed files with 508 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
const MarkdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
const highlight = require('./highlight');
const { slugify } = require('transliteration');
const parser = new MarkdownIt({
html: true,
highlight,
}).use(markdownItAnchor, {
level: 2,
slugify,
});
module.exports = parser;