chore: remove @vant/markdown-loader package

This commit is contained in:
chenjiahan
2021-09-07 14:21:05 +08:00
parent f0cc727c6a
commit 6eec7f3c2f
10 changed files with 0 additions and 508 deletions
@@ -1,16 +0,0 @@
module.exports = function cardWrapper(html) {
const group = html
.replace(/<h3/g, ':::<h3')
.replace(/<h2/g, ':::<h2')
.split(':::');
return group
.map(fragment => {
if (fragment.indexOf('<h3') !== -1) {
return `<div class="card">${fragment}</div>`;
}
return fragment;
})
.join('');
};