Error parsing Mermaid diagram with title set

Steps to reproduce

With the following

```mermaid
---
title: Animal example
---

classDiagram

Animal <|-- Duck

Expected result

Graph with title

Actual result

Error parsing Mermaid diagram!

Parse error on line 1:
---title: Animal e
^
Expecting 'open_directive', 'NEWLINE', 'SPACE', 'GRAPH', got 'LINK'`

Environment

  • Operating system: Windows 10
  • Debug info:

Additional information