dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Wiki links break when inserted into a table

Open ric03uec opened this issue 4 years ago • 7 comments

Describe the bug When wiki links are inserted into a markdown table, they're not being converted to URL's, probably because the pipe character (|) needs to be escaped during parsing.

To Reproduce Steps to reproduce the behavior:

  1. insert a table into any note
  2. add a link in the table
  3. Link is broken int the markdown preview
  4. the same links work correctly when added outside the table
  5. the same links also work if the pipe character is escaped but then the text is incorrect in resulting markdown

Expected behavior The links should be converted to correct URLs

Screenshots image

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Browser: Chrome
  • Version: 83.0.4103.116

ric03uec avatar Aug 21 '20 17:08 ric03uec

you're right, this is a bug. it's inside Dendron Preview Enhanced which is a fork off this extension. could you submit a bug report there as well?

kevinslin avatar Aug 22 '20 16:08 kevinslin

Making an update to this issue.

As of the latest versions, Dendron 0.31.1 and Dendron Markdown Preview Enhanced 0.10.28, wiki links are still not rendering correctly in tables.

The text:

Capture1

Renders as:

Capture2

However, the behavior has changed since @ric03uec opened this issue in August.

Rather then displaying the link text with the escape symbol, it is now displaying the wiki link as a raw Markdown link.

Entering a wiki link without escaping the pipe character continues to break the table.

@kevinslin, is this now an issue with Dendron, or is it still an issue with Markdown Preview Enhanced?

Thank you.

micharris42 avatar Mar 03 '21 04:03 micharris42

@micharris42 its an issue with both. markdown preview handles tables a little differently from dendron but in neither case are wiki links currently supported

kevinslin avatar Mar 04 '21 15:03 kevinslin

+1 I confirmed that this bug still exists in the current iteration of preview/publishing

ScriptAutomate avatar Sep 11 '22 23:09 ScriptAutomate

Same issue with Inline code in a column (eg binary OR, regex)

rioka avatar Nov 07 '22 17:11 rioka

Bug still present in v0.119.0

doylejg avatar Feb 01 '23 22:02 doylejg

Until it's fixed, I found this to be a workaround: Just escape the pipe (|) symbol with a backslash (\)

Ex. [[ Some Text \| Some Link ]]

The backslash is visible, but at least the wiki link works.

Cano707 avatar Apr 23 '23 19:04 Cano707