markdown-confluence / markdown-confluence

Publish your Markdown Files to Confluence

Home Page:https://markdown-confluence.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Screenshot 2024-04-10 at 12 01 44

Possible Solution

Treat mermaid diagrams just as a code block?

Steps to Reproduce

  1. Create blank page in Obsidian
  2. Insert Mermaid diagram, example:
flowchart LR
    A---|This is the text|B
Loading
  1. 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.