chore: prettier packages codes

This commit is contained in:
陈嘉涵
2020-01-19 14:09:32 +08:00
parent 389d68884d
commit 1575bea6f5
18 changed files with 113 additions and 80 deletions

View File

@@ -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 => {

View File

@@ -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;