I know of https://github.com/jupyter/nbconvert/issues/699. Nevertheless I find it confusing because I can easily export to html or reveal.js and the images are there as far as I reference them using ![]() syntax. Now, as this is very limited in terms of formatting, many times I need to use an <img> tag instead, and then the attachments aren't exported to the output.
Nbconvert version: 5.5.0
Same issue here. I usually use <img> for better image formatting. Hopefully nbconvert can support it.
I solved it by adding the images in the correct path (relative to my html files) used in the <img> tags.
Yes it likely is related. The way attachments got implemented in notebooks was fairly organic and this caused some difficult-to-fix issues for exporting to other formats. @xiaohk is the best work-around for now until that code path gets cleaned up (likely a 6.0 feature).
I tried a lot of workarounds too, and eventually ended up with the same thing that @xiaohk described.
I solved it by adding the images in the correct path (relative to my
htmlfiles) used in the<img>tags.
@xiaohk
Can you explain how to do this, using a concrete example?
Does it apply to my situation, where I have a MarkDown cell with an attached image, shown via MarkDown syntax (not an HTML <img> tag; not an external image file).
I also tried nbconvert with an image that is embedded through data: and een encoded image. This also did not work for me.
Most helpful comment
I solved it by adding the images in the correct path (relative to my
htmlfiles) used in the<img>tags.