Mermaid flow chart generation

Steps to reproduce

Type below: →
create a new note
paste the following:
`

flowchart LR
  subgraph TOP
    direction TB
    subgraph B1
        direction RL
        i1 -->f1
    end
    subgraph B2
        direction BT
        i2 -->f2
    end
  end
  A --> TOP --> B
  B1 --> B2`

Expected result

image

(NB: this is generated from here:

Actual result

Error parsing Mermaid diagram!

Cannot read property ‘id’ of undefined

image

Environment

  • Operating system: windows 10
  • Obsidian version: 0.12.15

I got this when I did a copy and paste. What I did was remove the backtick from the B2 in the last line.

image

image

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.