Raneto icon indicating copy to clipboard operation
Raneto copied to clipboard

Images don't show in preview mode when editing a page.

Open GrahamDumpleton opened this issue 6 years ago • 1 comments

Need to do more checks on when this occurs, but in some circumstances at least, images are not showing in markdown preview when editing page. For example, in case where so happen to be using at a base_url or /workshop, if URL path is /workshop/index/edit, get:

image

This is because the HTML generated from markdown preview is:

<p><img src="jupyterpreview.png" alt="Jupyter Notebooks" title=""></p>

So the src ref is going to end up trying to load /workshop/index/jupyterpreview.png rather than /workshop/jupyterpreview.png.

Need to have the markdown preview know it has to adjust image paths to add ../ in front, or do something else so they resolve to correct location.

GrahamDumpleton avatar Jan 20 '19 20:01 GrahamDumpleton

I believe this is corrected in the latest version. Will do some QA checks soon.

ryanlelek avatar Aug 12 '22 11:08 ryanlelek