johansatge / obsidian-automatic-table-of-contents

💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
MIT License
128 stars 12 forks source link

Allow inlineFirstLevel to be also for another level #39

Closed Gnopps closed 3 months ago

Gnopps commented 5 months ago

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

johansatge commented 4 months ago

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 commented 3 months ago

Fixed in 1.3.3