I'm making a flow diagram of some data and code for a project I'm working on, using the Wiki functionality of the Azure Devops environment (Project -> Overview -> Wiki). The wiki editor has a button to create a simple mermaid diagram. I am using that functionality to create a diagram of our project. When I execute the example code for a database style node:
::: mermaid
graph LR
id1[(Database)]
:::
Azure devops returns the following error:
Parse error on line 2:
graph LR id1[(Database)]
----------------^
Expecting 'SPACE', 'GRAPH', 'DIR', 'TAGEND', 'TAGSTART', 'UP', 'DOWN', 'subgraph', 'end', 'STR', 'MINUS', '--', '==', 'STYLE', 'LINKSTYLE', 'CLASSDEF', 'CLASS', 'CLICK', 'DEFAULT', 'PCT', 'NUM', 'COMMA', 'ALPHA', 'COLON', 'BRKT', 'DOT', 'PUNCTUATION', 'UNICODE_TEXT', 'PLUS', 'EQUALS', 'MULT', got 'PS'
I've googled this error, and here it is suggested that the problem is due to an old version of Mermaid. Does anyone know workarounds or old documentation?