mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
chore: prettier packages codes
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
module.exports = function cardWrapper(html) {
|
||||
const group = html.replace(/<h3/g, ':::<h3').replace(/<h2/g, ':::<h2').split(':::');
|
||||
const group = html
|
||||
.replace(/<h3/g, ':::<h3')
|
||||
.replace(/<h2/g, ':::<h2')
|
||||
.split(':::');
|
||||
|
||||
return group
|
||||
.map(fragment => {
|
||||
|
@@ -47,10 +47,10 @@ export default {
|
||||
|
||||
const parser = new MarkdownIt({
|
||||
html: true,
|
||||
highlight
|
||||
highlight,
|
||||
}).use(markdownItAnchor, {
|
||||
level: 2,
|
||||
slugify
|
||||
slugify,
|
||||
});
|
||||
|
||||
module.exports = function(source) {
|
||||
@@ -60,7 +60,7 @@ module.exports = function(source) {
|
||||
options = {
|
||||
wrapper,
|
||||
linkOpen: true,
|
||||
...options
|
||||
...options,
|
||||
};
|
||||
|
||||
let fm;
|
||||
|
Reference in New Issue
Block a user