Commit 25c105cd authored by NGPixel's avatar NGPixel

fix: Exclude commented headers from page contents tree

parent 767896db
......@@ -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 = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment