Skip to content

Mermaid rendering issue #331

Description

@rcuisnier

Hello,

I encounter following issue with Mermaid diagrams rendering on v3000.0.4:

Image

Taking this document having few mermaid diagrams:
https://raw.githubusercontent.com/schuyler/macdown3000/refs/heads/main/assets/demo.md

By Default (by opening the document) no diagrams are rendered

Image

I need to open settings , switch the theme, then Only the first one is rendered

Image Image

When I switch the theme and clic refresh the diagram rendering fails even for the first one

Image
  • Also, Would it be possible to get Mermaid taking the full width of the preview pane ?
Image Image

Example of mermaid version debug:


```mermaid
info

----

`

config:
theme: 'base'
themeVariables:
primaryColor: '#BB2528'
primaryTextColor: '#fff'
primaryBorderColor: '#7C0000'
lineColor: '#F8B229'
secondaryColor: '#006100'
tertiaryColor: '#fff'

    graph TD
      A[Christmas] -->|Get money| B(Go shopping)
      B --> C{Let me think}
      B --> G[/Another/]
      C ==>|One| D[Laptop]
      C -->|Two| E[iPhone]
      C -->|Three| F[fa:fa-car Car]
      subgraph section
        C
        D
        E
        F
        G
      end

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions