mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05: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
1 changed files with 1 additions and 1 deletions
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…
Reference in a new issue