mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
fix: Exclude commented headers from page contents tree
This commit is contained in:
parent
767896dbe4
commit
25c105cdc2
@ -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…
Reference in New Issue
Block a user