Mermaid: Inline class annotations cause parsing error

Steps to reproduce

  1. Create Mermaid block
  2. Type inline class definition as defined in the docs:
classDiagram
    class Shape <<interface>>
  1. See syntax error

Did you follow the troubleshooting guide? [Y/N] Y

Yes, I have a docker container with a fresh Obsidian install. Also tried it on my local install, same result.

Expected result

Expect to see a properly rendered Mermaid diagram showing a class with the correct class annotation.

Actual result

Parsing error:

Error parsing Mermaid diagram!

Parse error on line 2:
...iagram	class Shape <<interface>>
----------------------^
Expecting 'NEWLINE', 'EOF', 'SQS', 'STR', 'DOT', 'GENERICTYPE', 'LABEL', 'STRUCT_START', 'STRUCT_STOP', 'STYLE_SEPARATOR', 'ANNOTATION_END', 'ALPHA', 'AGGREGATION', 'EXTENSION', 'COMPOSITION', 'DEPENDENCY', 'LOLLIPOP', 'LINE', 'DOTTED_LINE', 'CALLBACK_NAME', 'HREF', 'NUM', 'MINUS', 'UNICODE_TEXT', 'BQUOTE_STR', got 'ANNOTATION_START'

Environment

SYSTEM INFO:
Obsidian version: v1.9.14
Installer version: v1.9.14
Operating system: #1 SMP PREEMPT_DYNAMIC Sat May 3 00:12:52 PDT 2025 6.12.24-Unraid
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

This doesn’t work even in their live editor online.