summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorSheogorath2018-07-04 11:20:59 +0200
committerSheogorath2018-07-04 11:21:15 +0200
commitcf934a4e5120b6d62cc8798aed52be2c424de91f (patch)
tree7d8b6fea9efa911ddbe98ffe1b4642f3028e41f0 /public
parent4fe062085324c50f2cfa062258559cf31858ef5f (diff)
Ignore h6 headers
h6 headers are used for tags in CodiMD. So we should ignore them for the ToC generation. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'public')
-rw-r--r--public/vendor/md-toc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/vendor/md-toc.js b/public/vendor/md-toc.js
index 55817830..661f7f85 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)
}