obsidian-export/tests/testdata/input/main-samples/issue-188-wikilinks-need-trimming.md
Nick Groenen 151679788a
Fix: trim filenames while resolving wikilinks
Obsidian trims the filename part in a [[WikiLink|label]], so each of
these are equivalent:

[[wikilink]]
[[ wikilink ]]
[[ wikilink |wikilink]]

Obsidian-export now behaves similarly.

Fixes #188
2023-12-02 12:19:16 +01:00

18 lines
273 B
Markdown

Obsidian trims space before and after the filename in a wikilink target.
These should all be the same:
[[foo]]
[[ foo]]
[[foo ]]
[[ foo ]]
[[foo|foo]]
[[ foo|foo]]
[[foo |foo]]
[[ foo |foo]]
[[foo#^abc]]
[[foo#^abc ]]
[[foo#^abc |foo > ^abc]]
[[ foo#^abc ]]