Support Markdown GitHub GFM style #kebab-case-heading-slug anchor targets

There is a solution to this with the open source markdown editor “QOwnNotes” see . It requires switching to standard markdown links though.

  1. Install Obsidian Community Plugin “Better Markdown Links”. Conver your vault to standard markdown notation
  2. Open QOwnnotes. Install the community script LInk “Import and Converter” as described on the QOwnNotes Website.
  3. Press ObsidianImport
  4. Press GFMExport (Github flavoured markdown export)

Now the whole Vault is in github friendly style ready for uploading to github.
The button: GFM Import will convert everything back to Obsidian Style.

I use both editors side by side. Everytime i use Obsidian I just click the ObsidianImport button in QN to adapt minor syntax changes.

There are Obsidian Plugins such as “Obsidian markdown export” or there is also a commandline tool “https://github.com/avcton/obsidian-exporter“. Another Commonmark Exporter: GitHub - zoni/obsidian-export: Rust library and CLI to export an Obsidian vault to regular Markdown · GitHub .

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.

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.

https://forum.obsidian.md/t/unique-links-to-headings-no-wikilinks/40130/10?u=netlimpopo

https://forum.obsidian.md/t/github-friendly-header-links/48719/4?u=netlimpopo