onlyafly / number-headings-obsidian

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

When headings are re-numbered (and therefore re-named), Links to them are broken. #52

Closed fluidstu closed 11 months ago

Helmoes commented 1 year ago

I also have this issue. Could an action be implemented to fix broken links?

Edit: Obsidian has a 'rename heading' action already implemented. Could this be used to add numbered headings? I think this would not break links.

image

achille-martin commented 1 year ago

Indeed, if you rename the header and then re-generate the numbered headings, the ToC still displays the old header name.

The renaming of the header can be applied by removing the # and then reapplying them. Then, after applying the numbering again, the ToC displays the right name.

The workaround is probably not the way to go, but it works until a fix is applied.

onlyafly commented 11 months ago

Duplicate of #26