Open ledemocrate opened 11 months ago
If the bug isn't clear, please let me know. The problem is : "I can't publish Quarto Document into Confluence if Quarto include Mermaid diagram"
Thank I can reproduce by
Thanks for the report
OK what I have found so far is that we are trying to update the image this way
<p><ac:image
ac:align="center"
ac:layout="center"
ac:width="5.77in"
ac:height="6.23in"
ac:alt="">
<ri:attachment ri:filename="mermaid-figure-1.png" />
</ac:image></p>
And it seems ac:width
and ac:height
are causing the issue when using API to update.
If I retrieve the page content via API I get none 🤔
<p><ac:image ac:align="center" ac:layout="center" ac:alt="">
<ri:attachment ri:filename="mermaid-figure-1.png" ri:version-at-save="1" />
</ac:image></p>
but width
and height
seems to be part of Confluence XML format
https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html#ConfluenceStorageFormat-Images
So could be a product version ? or an issue in Confluence API directly ? 🤔
Also this issue should happen with image and not just mermaid graph. I'll try that too
Bug description
Quarto has native support for embedding Mermaid and Graphviz diagrams. This enables you to create flowcharts, sequence diagrams, state diagrams, gantt charts, and more using a plain text syntax inspired by markdown. It works very good, but no when it published into Confluence
Steps to reproduce
Make a quarto document with a diagram mermaid into :
Expected behavior
Actual behavior
Your environment