Support the Github anchor format

Use case or problem

As we know, Github support markdown viewing directly in their web pages, so I just uploaded my notes to it and found some errors about anchor.

if you type [[# and choose a title with blank and use autocompletion, you will get an anchor with a URLEncoded format %20. If you change it to -, you can jump to proper position in Github and other viewers accepting this format but will fail in Obsidian.

An Example:

# Anchor Test(test)

Obsidian autocomplete: [Anchor Test(test)](#Anchor%20Test%20test)

‘Github’ format: [Anchor Test(test)](#anchor-testtest)

Besides, ()_ should be deleted and uppercase letters should be transformed to lowercase letters in ‘Github’ format

Proposed solution

Support the HTML(or maybe Github) anchor format and add an option to switch it for default.

11 Likes

i would really need to define custom anchors for headings!

There is the free open-source markdown-editor QOwnNotes. In it you can just convert you whole vault or parts of it to GFM (Github flavoured markdown). You can also convert notes them back to Obsidian format or import markdown files from VS Codium.
It requires to make Obsidian use standard markdown links with the plugin “Better markdown links” Better markdown links . Check out similar threads below. There is no option for custom heading fragments though.