Skip to content

Error appearing in an incorrect place if mermaid diagrams have errors #26

@mlopezFC

Description

@mlopezFC

Describe the bug

If I try to add a wrong mermaid diagram in the markdown, an error appears in a div outside the markdown editor

Expected behavior

If the mermaid diagrams are wrong, then it should display the error in a proper way, or even do not display an error at all

Minimal reproducible example

  1. Go to https://addonsv24.flowingcode.com/markdown-editor/editor-demo
  2. Put the following text in the editor:
```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
loop Healthcheck
    John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-adsf>John: Jolly good!
  1. The following error appear after the editor:
Image

Add-on Version

latest

Vaadin Version

24

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions