nbviewer-app icon indicating copy to clipboard operation
nbviewer-app copied to clipboard

Images in markdown are not displayed

Open jontingvold opened this issue 6 years ago • 3 comments

When you include images in the markdown text, they are not displayed in Nbviewer-app.

None of these methods work.

Image in same directory ![](curse-of-dim.png)

Attached image ![curse-of-dim.png](attachment:curse-of-dim.png)

Image with img tag <img src="curse-of-dim.png">

Attached image with img tag <img src="attachment:curse-of-dim.png">

See included file to reproduce the bug. Bug - Images is not displayed in nbviewer-app.zip

jontingvold avatar Sep 19 '19 12:09 jontingvold

Thanks for your report! I don't have much time right now to work on the app, but this would be really nice to support. The only way to include images right now is to embed them in the notebook file as Base64-encoded strings.

tuxu avatar Sep 22 '19 06:09 tuxu

This problem is still here unfortunately.

kinoute avatar May 27 '20 22:05 kinoute

If we make all current resources (various js files) inlined and set resourceURL to be the same as the original file it looks like it will work in theory. This will not only images but any resource referred in the original ipynb file.

Screen Shot 2021-06-06 at 23 25 35

nacho4d avatar Jun 06 '21 14:06 nacho4d