Markdown internal links might contain spaces

Steps to reproduce

  1. Create a new vault
  2. Turn off Wiki links
  3. Create a file called one:
# Section One
  1. Create a file called two
  2. Write [[one#Section One]]

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

I don’t know if there’s any offical standard for how should section link should look like, accordin to the StackOverflow Answer, the generated link should be [one.md](one.md#section-one).

Actual result

Obsidian will replace that to [one.md](one.md#Section%20One) which will make the link broken in Github. If the link is manually changed to Github’s convention then it will no longer point to the section when clicking on it in Obsidian.

Environment

I’m not sure debug info is relevant


Additional information

Since this isn’t covered in the Markdown spec I suggest either having a configuration option to maintain compatibility with Github. If adding a configuration is undesirable I would suggest that Obsidian will generate links as it does now, but support both forms when clicking on a link inside it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.