Indented code blocks starting with a link not recognized in edit mode

We just noticed a bug in Obsidian 0.14.6 in a discourse chat.

To reproduce, put the following text into an empty note:


    foo [[bar]]

    [[bar]] foo

Each line should be indented with 4 spaces or a tab.

Now if you switch to reading mode, all 3 lines are shown as code blocks. The third line is also interpreted as code block by the indexer, you don’t see the link to “bar” in the Graph.

But when you switch to source mode or live preview, then the last line is shown as normal text, with the “bar” link operable as if this would be no code block.

This can be very confusing.