ozntel / oz-image-in-editor-obsidian

This Obsidian plugin to view Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.
339 stars 13 forks source link

[BUG] Image from Internet cannot be displayed in Preview mode #8

Closed emisjerry closed 3 years ago

emisjerry commented 3 years ago

sample:

![[https://images.unsplash.com/photo-1619646285741-538322e8d6b8?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=900&ixid=MnwxfDB8MXxyYW5kb218fHx8fHx8fHwxNjIwMjk0MjA4&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source]]

quotaion cause error? image

ozntel commented 3 years ago

Hi @emisjerry I tried the link you provided but it works. You should have the clean link or path to the image inside of your wikilinks or markdown format.

The plugin will search for anything you put within ![[LINK]] or !()[LINK]

Screenshot 2021-05-06 at 12 46 09
emisjerry commented 3 years ago

Editor works, the problem is the Preview panel which has error and cannt display image.

image

ozntel commented 3 years ago

My plugin only handles the view in the editor. I don't touch the preview part. You should raise this issue to the Obsidian team.

emisjerry commented 3 years ago

Well, the same URL have two situations:

  1. ![text](URL): Editor no image, Preview shows (!(text)[URL] typo?)
  2. ![[URL]]: Editor show, Preview not show

image

ozntel commented 3 years ago

@emisjerry I just released the new version, which should solve the issue with the image in the editor. Please kindly update and let me know if you still have the issue. As I mentioned, you should report the issue with the preview mode to Obsidian since it is out of scope for my plugin :)

emisjerry commented 3 years ago

👍