If a .bike outline text contains a closing brace } anywhere, Mermaid reports error in Marked

Viewed 14

Many thanks for including Bike in the list of Mermaid-includable file types.

Generally working well, and very welcome.

Bug:

if a single closing brace character } (matched or unmatched) is used anywhere in the outline text, we get a bomb watermark and the message:

Syntax error in text – mermaid version 11.12.3

Perhaps a character escaping issue ?


FWIW I bumped into this in the context of using citation references like:
{Condillac, 1798 #10539}

Empirically, the error is bypassed if we double that bracketing:

{{Condillac, 1798 #10539}}

(I wonder if an XSLT template is at work somewhere in Mermaid or Marked ? Or perhaps a templating engine that uses curly braces for data binding ?)

0 Answers