Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Bug when decreasing toc from h3 to h1 for example #6

Open
barais opened this issue May 3, 2021 · 0 comments
Open

Bug when decreasing toc from h3 to h1 for example #6

barais opened this issue May 3, 2021 · 0 comments

Comments

@barais
Copy link

barais commented May 3, 2021

In this line, it could be better to change it for managing if we have such kind of outline

h1

h2

h3

h3

h1

for (let j = 0; j< previousTag - level ; j++ ){
    toc += '</ul>';
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant