dendron
dendron copied to clipboard
Wiki links break when inserted into a table
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:
- insert a table into any note
- add a link in the table
- Link is broken int the markdown preview
- the same links work correctly when added outside the table
- 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
Desktop (please complete the following information):
- OS: Ubuntu 18.04
- Browser: Chrome
- Version: 83.0.4103.116
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?
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:
Renders as:
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 its an issue with both. markdown preview handles tables a little differently from dendron but in neither case are wiki links currently supported
+1 I confirmed that this bug still exists in the current iteration of preview/publishing
Same issue with Inline code in a column (eg binary OR, regex)
Bug still present in v0.119.0
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.