Open danizen opened 4 years ago
I reviewed the Confluence Storage Format documentation, and satisfied myself that using ri:attachment
is better than ri:url
.
Note, markdown images could be made similar as follows:
Some more information for diagnosing the problem:
https://example.com/confluence/display/~davisda4/Page+with+DataFrame+and+Plot
https://example.com/confluence/pages/editpage.action?pageId=146342104
Seems like the code in nbconflux\exporter.py
needs to keep everything to the left of the patterns it identifies as a prefix, and then use that to construct the URL for attachments that are uploaded.
The image is properly attached to the page, but is not displaying correctly. After I run nbconflux to update the page, and then request its content with body.storage expanded, I see this in the body.storage.value:
However, when I fix this manually in the page with an attachment link, I see:
It looks like the two lines that need a change are:
confluence.tpl line 148 confluence.tpl line 156
I will attempt a fix and get back to you.
Possible related issues: #17