erDiagram error parsing key and comments

Steps to reproduce

  1. Create mermaid code block.
  2. Paste attribute keys and comments example into code block.

Did you follow the [troubleshooting guide]

Yep

Expected result

An erDiagram with tables that include four fields, type, name, attribute key, and comment.

Actual result

Error parsing Mermaid diagram!
Parse error on line 12:
…se #" string(99) firstName "Only
----------------------^
Expecting ‘ATTRIBUTE_WORD’, got ‘(’

Environment

SYSTEM INFO:
Obsidian version: v1.3.7
Installer version: v1.3.5
Operating system: #1 SMP PREEMPT_DYNAMIC Tue Jul 25 09:30:58 UTC 2023 6.4.6-1-MANJARO
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 11
Plugins enabled: 10
1: Excalidraw v1.9.14
2: Calendar v1.5.10
3: Advanced Tables v0.19.1
4: Dangling links v0.3.0
5: Highlightr v1.2.2
6: Citations v0.4.5
7: Spaced Repetition v1.10.1
8: Dataview v0.5.56
9: ExcaliBrain v0.2.7
10: Emoji Toolbar v0.4.1

Additional information

When playing around with my own diagram in a sandbox vault (and my normal vault), I’m able to get all four fields to work but only when I use PK and FK for the attribute key fields and only when I use alphanumeric characters for any of the other fields besides the comment field.

I’m assuming mermaid isn’t fully integrated into obsidian? I couldn’t find any documentation on these limitations.

this will work in v1.4

1 Like

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