onlyafly / number-headings-obsidian

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

Linkage between pages will broken when automatic numbering #38

Open starslxd opened 1 year ago

starslxd commented 1 year ago

When we enable automatic numbering, it will break the linkage and shows "unable to find section". Could this plugin update the linkage automatically as well?

e.g. We have two pages: Page A.md

1. Heading

2. Heading2

Page B.md [[Page A^2. Heading2]

After inserting another heading before "2. Heading2". The link in Page B will show the error message. Page A.md

1. Heading

2. Heading (new)

3. Heading2

onlyafly commented 1 year ago

Interesting idea. I'm not sure how to do that yet, but I'll look into this.

hustrjh commented 1 year ago

I think #26 issue could be a reference to this issue. There's no need to print error message as the plugin could update all the reference to the heading.