From 25c105cdc27a8610b05bd4e1b1f9ad161b614151 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Thu, 4 May 2017 21:16:53 -0400 Subject: [PATCH] fix: Exclude commented headers from page contents tree --- server/libs/markdown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/libs/markdown.js b/server/libs/markdown.js index b86e6fe8..101c2587 100644 --- a/server/libs/markdown.js +++ b/server/libs/markdown.js @@ -94,6 +94,7 @@ const videoRules = [ * @return {Array} TOC tree */ const parseTree = (content) => { + content = content.replace(//g, '') let tokens = md().parse(content, {}) let tocArray = []