Workaround for creating wiki link to header within tables

I was trying to add an alias to a header link (wiki link to a header in the same document) inside a table and realized I didn’t know how to do it. I know typing [[/ would bring up a list of headers in the document to create a quick link. But how do I add an alias?

I tried editing the link to go from [[/My Header]] to [[/My Header|alias]], but Bear 2.0 escapes the vertical bar (|) and won’t let you unescape it inside a table, since the vertical bar interferes with table parsing. I searched this forum for an answer and didn’t find one… but I did find a workaround that I thought I’d share just in case future me ends up in this same predicament and I find myself searching this forum for an answer (again). :slightly_smiling_face:

You can alias a header link inside a table this way:

  1. Place the cursor on the destination header you want to link
  2. Click on the header level icon on the left to get the context menu with the “Copy link to here” option at the bottom and click it.
  3. Go back to your table where you want the link, press command+K to insert the link and enter whatever alias you please. Et voilà!

Basically, this approach uses a standard link using a callback link to the target header instead of a wiki link. It’s not as pretty, but it gets the job done. Maybe this is standard knowledge in Bear, but it was new to me.