vericast / nbconflux

nbconflux converts Jupyter Notebooks to Atlassian Confluence pages
BSD 3-Clause "New" or "Revised" License
117 stars 33 forks source link

Images in markdown cells do not show up #17

Closed gretzteam closed 5 years ago

gretzteam commented 5 years ago

Hi, Images included part of a markdown cell are not showing up in Confluence. ![alt text](images/someImage.png) I modified the notebook to include images like this, but it's slightly clumsy as a new cell has to be inserted just for the image...

from IPython.display import Image
Image("images/someImage.png")
parente commented 5 years ago

Hi @gretzteam. Markdown images are a known issue. The Confluence data format uses custom image tags, not the standard <img> which the markdown parser used by nbconvert produces (https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html#ConfluenceStorageFormat-Images).

It may be possible to customize the markdown2html functionality in nbconvert. I haven't taken the time to explore it. I'm happy to take a pull request or see findings reported in comments if someone does poke around with it.

gretzteam commented 5 years ago

Hi, Thanks for the reply. I had a quick look but quickly realized that this stuff is 100% our of my league so I don't think I can contribute... The current solution works fine so it's not that big of a deal... Thanks!

xiangpeng2008 commented 3 years ago

Have same issue, the images rendered using base64.b64encode and HTML don't show up neither.