mirror of
https://github.com/status-im/codimd.git
synced 2025-02-03 12:33:28 +00:00
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>
This commit is contained in:
parent
4fe0620853
commit
cf934a4e51
2
public/vendor/md-toc.js
vendored
2
public/vendor/md-toc.js
vendored
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user