From cf934a4e5120b6d62cc8798aed52be2c424de91f Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Wed, 4 Jul 2018 11:20:59 +0200 Subject: [PATCH] Ignore h6 headers h6 headers are used for tags in CodiMD. So we should ignore them for the ToC generation. Signed-off-by: Sheogorath --- public/vendor/md-toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/vendor/md-toc.js b/public/vendor/md-toc.js index 5581783..661f7f8 100644 --- a/public/vendor/md-toc.js +++ b/public/vendor/md-toc.js @@ -28,7 +28,7 @@ Toc.prototype._collectTitleElements = function () { this._elTitlesNames = [] this.elTitleElements = [] - for (var i = 1; i < 7; i++) { + for (var i = 1; i < 6; i++) { if (this.el.getElementsByTagName('h' + i).length) { this._elTitlesNames.push('h' + i) }