Mermaid subgraph to nested subgraph off by 1

Steps to reproduce

  1. Create any number of id/names but at least 6 perhaps
  2. Create two subgraphs
  3. Make a nested subgraph within one you already created
  4. From the subgraph that is separate from the nested pair create a link to an item in the nested subgraph
  5. Also notice that if linking from the separate subgraph to the parent of the nested one, it is pointing to air

Expected result

For the arrow to link to the item in the nested subgraph

Actual result

The link is off by 1 level. Th arrow will point to the parent subgraph in a single nest and linking to the parent will point to air

Environment

Windows 11 x 64 - 10.0.22621.1344

  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.16
    Installer version: v1.1.9
    Operating system: Windows 10 Home 10.0.22621
    Login status: logged in
    Catalyst license: insider
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: off
    Plugins installed: 25
    Plugins enabled: 17
    1: Kanban v1.5.2
    2: Find orphaned files and broken links v1.8.0
    3: Underline v1.2.1
    4: Templater v1.16.0
    5: Advanced Tables v0.18.1
    6: Sortable v0.3.1
    7: Obsidian Git v2.17.4
    8: Tag Wrangler v0.5.6
    9: Obsidian42 - Strange New Worlds v1.1.4
    10: obsidian markmind v1.6.7
    11: Influx v2.1.2
    12: Media Extended v2.11.1
    13: Obsidian Graphviz v1.0.5
    14: Dataview v0.5.55
    15: Outliner v4.2.1
    16: Paste image rename v1.6.1
    17: Admonition v9.2.1

Additional information

This issue still occurs in the sandbox. I also pasted the same code to the live mermaid editor and it worked as expected.

post a screen recoding of this happening in the sandbox vault and attach a copy of the file where this happens.

The code:

flowchart BT
HVAC
ICS
SCADA
PLC
BAS
PACS
RTOS
PLC
FiBu
HMI
DaHi
MoBu
PreSys
subgraph IOT
	subgraph ES
		HVAC
		PLC
		RTOS
	end
end
subgraph PreSys
	PACS
	BAS
end
BAS-- Incorperates --> HVAC
SOC -- Can be --> ES
ICS -- Controls --> ES
SCADA -- Is a type of --> ICS

Obsidian:

Mermaid Editor:

Obsidian if I change “ICS – Controls → ES” to “ICS – Controls → IOT”:

Mermaid editor if I change “ICS – Controls → ES” to “ICS – Controls → IOT”:

alright, this is probably a bug in the mermaid version we are using. should we fixed when we upgrade to mermaid 10.

will be fixed in v1.4

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