Mermaid diagram causes an Unsupported color format error
twigley opened this issue · comments
Pages with a mermaid chart cause an error when trying to publish to confluence.
Expected Behavior
Document published to confluence.
Mermaid integration in confluence is available but I'd expect this plugin to just push the diagram as a code block and display it as test rather than show a rendered diagram.
Current Behavior
An error occurs as shown here:
Possible Solution
Treat mermaid diagrams just as a code block?
Steps to Reproduce
- Create blank page in Obsidian
- Insert Mermaid diagram, example:
flowchart LR
A---|This is the text|B
- Trigger publish to confluence
Workaround
I've not found any workarounds for this beyond removing the diagram from the page. Once removed, the affected pages will publish without any issue.
Noted the documentation here https://markdown-confluence.com/features/mermaid.html but this doesn't seem to be the behaviour I get.
Environment
Obsidian 1.5.12
Confluence Integration 5.5.2
I've identified a workaround and potentially an indicator of where the issues is.
Updating the config for the plugin in Obsidian, change Mermaid Diagram Theme
to Mermaid - Default
or any option that is not the default Match Obsidian
value and this works correctly.