Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Images copy pasted as attachments not rendering in HTML #115

Open
sudheer opened this issue Apr 9, 2020 · 1 comment
Open

Images copy pasted as attachments not rendering in HTML #115

sudheer opened this issue Apr 9, 2020 · 1 comment

Comments

@sudheer
Copy link

sudheer commented Apr 9, 2020

The images copy pasted into markdown cell in Jupiter notebooks are not able to render in html generated using pelican.

@jooh
Copy link

jooh commented Jun 10, 2020

I found a reasonable workaround for this. If you have the standard 'images/' static path in your pelicanconf you can place the image there, then add a symlink to 'images' in the content directory where your notebook is located. Now the images will appear both in the jupyter notebook and in your website output because the relative path remains valid.

So for example, in shell:

cd content/data
ln -s ../../images

in your Jupyter notebook markdown cell:

![Poldrack et al., 2017](images/Poldrack_Scanning_2017.png)

and in your pelicanconf.py:

STATIC_PATHS = ["extra/CNAME", "extra/favicon.ico", "images", "extra/custom.css"]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants