Impossible to use alias while linking notes in a table

  • Bear Version: 2.6.1 (13751)
  • OS Version: 26.1
  • What were you doing: Trying to add an alias to a linked heading in a table
  • What feature did you use: Linking + Alias + Table
  • What happened: I can’t add alias as it keeps adding \ before every word I type.
  • What did you expect to happen: Alias should be inserted.

Yes, the | automatically gets escaped inside tables to not break the table syntax. And since it is escaped it doesn’t do the job in the wikilink either.

I notice that Obsidian recognizes even escaped | as an alias divider, so that could be a solution.

We will think about it and see what we can do. Thanks for reporting!

2 Likes

We have discussed this issue, and we don’t have a good solution for it:

If we did as Obsidian and accepted escaped pipes as an alias divider, then one couldn’t link to titles that contain a pipe character. That doesn’t seem like a good tradeoff.

We could change the markdown parser to allow unescaped pipes inside wikilinks inside table cells. This is a decent solution, but it would break export of tables as other tools wouldn’t support it. Also, it is a non-trivial change as tables are parsed before wikilinks.

So, unless we get a lot of pushback, we will probably leave it as is, not supporting aliases in wikilinks when inside a table.