Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow inlineFirstLevel to be also for another level #39

Closed
Gnopps opened this issue Apr 10, 2024 · 2 comments · Fixed by #44
Closed

Allow inlineFirstLevel to be also for another level #39

Gnopps opened this issue Apr 10, 2024 · 2 comments · Fixed by #44
Assignees
Labels
enhancement New feature or request

Comments

@Gnopps
Copy link

Gnopps commented Apr 10, 2024

The option style: inlineFirstLevel is great to show the ToC inline, instead of vertically. However, many of my notes do not contain any first level headings at all (because of styling reasons) making this option not work. Would it please be possible to make the option be either something like:
inlineFourthLevel
or adding another option like: inlineLevel: 4

@Gnopps Gnopps added the enhancement New feature or request label Apr 10, 2024
@johansatge
Copy link
Owner

Thx for the feedback! Makes sense, style: inlineFirstLevel could follow the same rules as style: nestedList: look for the right level (like defaulting to level 2 when there is no 1) and also take minLevel into account.

@johansatge
Copy link
Owner

Fixed in 1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants