Skip to content

Commit cf934a4

Browse files
committed
Ignore h6 headers
h6 headers are used for tags in CodiMD. So we should ignore them for the ToC generation. Signed-off-by: Sheogorath <[email protected]>
1 parent 4fe0620 commit cf934a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/vendor/md-toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Toc.prototype._collectTitleElements = function () {
2929
this._elTitlesNames = []
3030
this.elTitleElements = []
31-
for (var i = 1; i < 7; i++) {
31+
for (var i = 1; i < 6; i++) {
3232
if (this.el.getElementsByTagName('h' + i).length) {
3333
this._elTitlesNames.push('h' + i)
3434
}

0 commit comments

Comments
 (0)