Misleading Rendering of Wikilinks inside rendered html

Hi,

Image Wikilinks inside code blocks are being rendered incorrectly. Instead of the text within the code block being rendered verbatim, the rendered version is converted to the text of a standard Markdown link.

i.e. ![[image]] is displayed as ![image](image), if the image is in the same folder, or ![image](x-devonthink-link-longstringofnumbers) if the image is in a subgroup.

NB: Actual links work perfectly, it’s only the text inside the code block which is converted. The same behaviour is seen inside DTTG as well as DT3.

BTW, the same source text is rendered accurately by iA Writer and BBEdit, so this appears to be something related to DT3 and DTTG.

Is there a valid reason for this behaviour, or is it a bug?

Many thanks.

Thanks for the feedback! It’s actually not a Wiki linking issue, just disable automatic Wiki linking completely and this should still happen. Instead it’s caused by the requested compatibility to Obsidian’s transclusion syntax ![[...]] and transclusions are supported anywhere in the document (e.g. to transclude source inside code blocks).

4 Likes

Ah, I see – an unintended but unavoidable side-effect of a good thing…

No problem – it’s not a big issue at all (I only came across it when I was testing image link compatibility across editors, which I don’t do every day…), but it’s good to know the reason.

Thanks again!