Browse Source

fix: Exclude commented headers from page contents tree

pull/98/head
NGPixel 7 years ago
parent
commit
25c105cdc2
1 changed files with 1 additions and 0 deletions
  1. 1
      server/libs/markdown.js

1
server/libs/markdown.js

@ -94,6 +94,7 @@ const videoRules = [
* @return {Array} TOC tree
*/
const parseTree = (content) => {
content = content.replace(/<!--(.|\t|\n|\r)*?-->/g, '')
let tokens = md().parse(content, {})
let tocArray = []

Loading…
Cancel
Save