Escaping square brackets to render images in live preview

What I’m trying to do

Is there a way to escape square brackets in rendered image links? Example:

![caption [@citationkey]](imagename) 

The name of graph and citationkey render correctly through pandoc as a caption of the image. But obsidian stops rendering the image in live edit mode. Is there a way to make obsidian render the image despite the square brackets?

Things I have tried

  1. escaping with \

  2. [[imagename|caption [@citationkey]]] with conversion to above format before export

  3. kinda of works but is a big of a hassle and the ]]] bracket rendering is not consistent.

Any other ideas?

I tried your example, and it looks to me like this is a quirk of Live Preview and you don’t need to escape anything. In Reading View (which tends to renders Markdown more accurately) the image appears as expected.

Do you think there a way to fix this for live preview? I never use reading view.

Search the forum for a bug report. If one exists you can support it by pressing the heart button or leaving a comment, and there may be a workaround in the discussion. If one doesn’t exist, you can post one.

1 Like