Closed BenRoe closed 3 years ago
Thanks for the suggestion! I think I will need some sort of example to completely understand it :-)
If the headline Headline 1
will be rename to Foobar
, the anchor link [Jump to Headline 1](#headline-1)
should also be renamed [Jump to Headline 1](#foobar)
## Headline 1
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
## Headline 2
[Jump to Headline 1](#headline-1) dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
I have added it as an experimental feature in version 1.2.1, that you can enable in settings:
I will eventually make it enabled by default once it has proven to be stable :-)
Thank you for adding it. Tried to test it, but no changes/reaction at all.
I have the latest version 1.2.1 installed. Activated it in the settings, but nothing happen if i edit a headline.
That's weird 🤔
It should work like this:
It triggers on save. Might be a stupid question, but are you saving your changes after editing? And what's the specific headline and link in your context?
My bad. Forgot that it works on save.
Punctuation at the end work, but for example Foobar's
breaks it and other symbolds, too.
Should be fixed now in version 1.2.2 :-)
Wow you are so fast. Will test it and give you feedback.
@BenRoe This feature is no longer behind a flag in the latest version. If you still have this setting in your settings.json
, you can safely remove it :-)
Thank you for the great vscode extension. It would be very useful if the extensions also detects if a headline was renamed and updates the anchor link in the same markdown file.