Can't use HTML tag `<img>` to show local picture

Steps to reproduce

  1. Create a markdown file and copy an image file into the same folder. Suppose the markdown file is called “test.md” and the picture file is called “1.jpg”.
  2. Edit the markdown file in the first line. Add <img src="1.jpg">
  3. Can’t show the picture correctly. It can’t show anything like below.

Expected result

The picture should be shown.

Actual result

Can’t show the picture correctly. It can’t show anything like below.

Environment

  • Operating system: Windows 10.0.19043
  • Obsidian Version: v0.13.33
  • Installer Version: v0.13.31

You need to use file:/// and the full path:

<img src="file:///full/path/on/disk/folder/subfolder/filename.jpeg">

See this post, with the proposed solution now implemented.

Angel

I see. Thank you very much! :blush:

1 Like

Pleasure to help a little.

Angel :angel:

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