Links using a pipe to set a link name conflicts with tables

Steps to reproduce

When including an internal link with a pipe and link name as a table entry, the pipe inside the link gets interpreted as a table delimiter. For example:
| Name | Link |
|-----------|--------------------------|
| Page name | [[File name | Link name]] |

Expected result

A link in the table that says “link name” and links to “file name”:

Actual result

The link gets cut in half at the pipe:
Screen Shot 2020-05-22 at 8.27.59 AM

Environment

  • Operating system: macOS 10.15.4
  • Obsidian version: 0.6.0
  • Using custom CSS: No

Additional information

I tried escaping out of the pipe, which makes the link display correctly as “link name” but then links to “file name \”

I think allowing links to “escape” the | with \ is reasonable and won’t break anything else. I will add it to the exception so you can escape the | with \|.

1 Like

Thanks! That would be great. And thanks for understanding what I wrote - I just realized the backslash disappeared in my last sentence (I forgot to escape the slash itself!)

I understood what you meant haha! I made the same mistake before.

Should be fixed if you use \|

1 Like