Raneto
Raneto copied to clipboard
Images don't show in preview mode when editing a page.
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:

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.
I believe this is corrected in the latest version. Will do some QA checks soon.