number-headings-obsidian icon indicating copy to clipboard operation
number-headings-obsidian copied to clipboard

Linkage between pages will broken when automatic numbering

Open starslxd opened this issue 2 years ago • 2 comments

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

starslxd avatar Oct 11 '22 02:10 starslxd

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

onlyafly avatar Dec 31 '22 10:12 onlyafly

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.

hustrjh avatar Jan 16 '23 15:01 hustrjh