onlyafly / number-headings-obsidian

Automatically number headings in a document in Obsidian
MIT License
104 stars 11 forks source link

auto skip the first head number when there is no first head #50

Closed xiligey closed 11 months ago

xiligey commented 1 year ago

My markdown code:

## head2
### head3
#### head4
##### head5

result after processing of this plugin:

image

Can we drop this "0." ? Because I don't have the first head but it shows zero.

merlinuwe commented 1 year ago

Me too. ;-)

onlyafly commented 11 months ago

You can solve this using the "first-level 2" setting.

For example, you could put this in the front matter:

number headings: first-level 2, auto