Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments may no longer appear before frontmatter #5910

Open
remcohaszing opened this issue Sep 30, 2024 · 0 comments
Open

Comments may no longer appear before frontmatter #5910

remcohaszing opened this issue Sep 30, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@remcohaszing
Copy link
Contributor

remcohaszing commented Sep 30, 2024

Description

In mermaid 10.9.1 it’s allowed to add a comment before the frontmatter. In mermaid 11, it’s not.

Steps to reproduce

Paste the diagram below into the mermaid live editor

Screenshots

From the browser console in the live editor:

image

Code Sample

%%{
  init: {
    "fontFamily": "arial,sans-serif"
  }
}%%
---
title: Node
---
flowchart LR
    id

Setup

  • Mermaid version: v11.2.1
  • Browser and Version: Chrome 129.0.6668.70

Suggested Solutions

Either document this as a breaking change, or add back support.

Additional Context

I’m running into this in mermaid-isomorphic because of this test and this test fixture.

@remcohaszing remcohaszing added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant