mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
make headerIds
const
[fix]
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
This commit is contained in:
parent
e1ff73877b
commit
3233a448c6
1 changed files with 1 additions and 1 deletions
|
@ -909,7 +909,7 @@ export function deduplicatedHeaderId (view) {
|
||||||
// all headers contained in the document, in order of appearance
|
// all headers contained in the document, in order of appearance
|
||||||
const allHeaders = view.find(`:header`).toArray()
|
const allHeaders = view.find(`:header`).toArray()
|
||||||
// list of finaly assigned header IDs
|
// list of finaly assigned header IDs
|
||||||
let headerIds = new Set()
|
const headerIds = new Set()
|
||||||
for (let j = 0; j < allHeaders.length; j++) {
|
for (let j = 0; j < allHeaders.length; j++) {
|
||||||
const $header = $(allHeaders[j])
|
const $header = $(allHeaders[j])
|
||||||
const id = $header.attr('id')
|
const id = $header.attr('id')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue