Skip to content

Commit

Permalink
feat: 🎸 beautify page summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ttskch committed Jun 22, 2020
1 parent 220eee3 commit edd747a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ module.exports = (option, ctx) => {

let summary = removeMd(content
.trim()
.replace(/:::/g, '') // remove custom container sign
.replace(/:::.*(\n|$)/g, '') // remove custom container sign
.replace(/\[\[toc\]\]/ig, '') // remove [[toc]]
.replace(/(\|\s*:?-+:?\s*)+\|/g, '') // remove table border
).replace(/\s+/g, ' ')
Expand Down

0 comments on commit edd747a

Please sign in to comment.