A wikilink's display text cannot hold `[[` or `]]`, or start or end with a space

Steps to reproduce

  1. Create a note t.md.

  2. In another note, write:

    [[t|a]]b]]
    
    [[t|a[[b]]
    
    [[t|[[t]]]]
    
    [[t|  a]]
    
    [[t|a  ]]
    
  3. Look at the links in Reading view.

Did you follow the troubleshooting guide?

Yes. Reproduced in a fresh vault with default settings.

Expected result

Some way to write each of these display texts with a wikilink: a]]b, a[[b, [[t]], a and a . For example, backslash escapes, the way \| works inside a table. The help says the two link formats are equivalent, and a markdown link shows each of these with escapes:

[a\]\]b](t.md)
[a\[\[b](t.md)
[\[\[t\]\]](t.md)
[  a](t.md)
[a  ](t.md)

Actual result

  • [[t|a]]b]] shows a, then the text b]].
  • [[t|a[[b]] is not a link to t. It shows b.
  • [[t|[[t]]]] shows t.
  • [[t| a]] and [[t|a ]] both show a. The spaces are trimmed.

Backslash escapes do not help. For example, [[t|a\]\]b]] does not show a]]b either. A single [ or ] works, and so does |: [[t|a|b]] shows a|b.

The help’s Invalid characters note lists [[ ]] for link targets, but nothing for display text.

Environment

  • Obsidian 1.14.5, installer 1.14.5, Windows 11. Also the same on 1.15.0 (Catalyst).
1 Like