mirror of https://github.com/status-im/codimd.git
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
|
@ -28,7 +28,7 @@
|
||||||
Toc.prototype._collectTitleElements = function () {
|
Toc.prototype._collectTitleElements = function () {
|
||||||
this._elTitlesNames = []
|
this._elTitlesNames = []
|
||||||
this.elTitleElements = []
|
this.elTitleElements = []
|
||||||
for (var i = 1; i < 7; i++) {
|
for (var i = 1; i < 6; i++) {
|
||||||
if (this.el.getElementsByTagName('h' + i).length) {
|
if (this.el.getElementsByTagName('h' + i).length) {
|
||||||
this._elTitlesNames.push('h' + i)
|
this._elTitlesNames.push('h' + i)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue