Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images in markdown cells do not show up #17

Closed
gretzteam opened this issue Sep 27, 2018 · 3 comments
Closed

Images in markdown cells do not show up #17

gretzteam opened this issue Sep 27, 2018 · 3 comments

Comments

@gretzteam
Copy link

gretzteam commented Sep 27, 2018

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
Copy link
Contributor

parente commented Sep 27, 2018

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
Copy link
Author

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
Copy link

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

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

No branches or pull requests

3 participants