onlyafly / number-headings-obsidian

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

[bug] The title will automatically delete the text #53

Open zhl111 opened 1 year ago

zhl111 commented 1 year ago

This is the original title image This is the title of automatic registration image

onlyafly commented 1 year ago

The problem here is that the plugin is trying to guess at what part of each heading is the number and what part is the text itself. In this case, there's no way to tell that "1929" is not the number of the heading.

I can't find a good way to solve this that doesn't break other heading renumbering.

I fix to use in this case would be to start your headings with some text. Like "Year" in your case maybe. Sorry this doesn't solve the underlying problem :(

Lin-Ye-Ye commented 11 months ago

You can try not to put spaces around the hyphen, it may help.