Display png in standard markdown format

What I’m trying to do

When I import notes from Zotero into Obsidian, images (the rectangle notes aka screen grabber for grafics in the books) are displayed like this:
![ ](6 Anhang/IGBA3KUR.png)

This results in the images not being shown because the correct Obsidian Markdown format would be:
![[IGBA3KUR.png]]

What can I do to ensure that these images are displayed correctly without having to manually adjust the Markdown formatting everywhere?

Things I have tried

I tried various plugins suggested by chatgpt but they didn’t work. I have the feeling I am missing something really simple here because it seems too obvious.

![ ](6 Anhang/IGBA3KUR.png)

Replace with

![ ](<6 Anhang/IGBA3KUR.png>)

or

![ ](<./6 Anhang/IGBA3KUR.png>)

Hey, thank you for this tipp.

Is there a possibility to insert this new command to the “wrong” command automatically because I want to avoid to manually change this everytime.

Or can I tell Obsidian somehow to show it even though its written the “wrong” way.

我的方法,使用插件 Linter

https://github.com/platers/obsidian-linter

添加自定义规则:

(?<=\]\()(?!<)(.+?)(?!=>)(?=\)) gm <$1>

Perfect, it solved it for me.
For future reference: I put in the commands in the custom Regex rules:
Title: fix image links
![ \ ]((.*?)) <=delete the spaces, I just need to put it here so the html viewer doesnt start
gm
![[$1]]

Now I just need to linter every file
Thank you! :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.