How do I convert <img> tags in markdown cells when exporting in Jupyter?

Viewed 1047

I've got a large report-like notebook which has got many images. Instead of using the ![title](link) syntax, I've had to use <img src="link" align="right" width=100> instead, so I have better control on them.

While this works inside the notebook in Jupyter Server, the inline <img> tags get rendered verbatim, instead of showing up as images.

I figure the problem resides with the nbconvert module which handles the conversion, but it seems as though a similar issue has already been resolved.

My links were originally linking directly to http:// links, but I've pulled them all locally, and am still getting verbatim HTML code instead of images.


In Jupyter vs rendered HTML


  • Jupyter version: 4.2.1
  • nbconvert version: 5.2.1
  • Python: 3.6.1
  • Distribution: Anaconda
  • Platform: Windows
2 Answers

Downgrading mistune solves the problem for me.

conda install mistune=0.7.2
Related