Skip to content

JSON configuration syntax not working on sequenceDiagram #169

Description

@Wauro21

Problem:

Using the JSON configuration parameters to customize the symbol, i.e. showing an actor in a sequenceDiagram, results in a Unrecognized text error on the preview.

Example

Following the docs' example: Sequence Diagrams on the actors section:

sequenceDiagram
    participant Alice@{ "type" : "boundary" }
    participant Bob
    Alice->>Bob: Request from boundary
    Bob->>Alice: Response to boundary

Results on the following error on the preview window:

Lexical error on line 2. Unrecognized text.
...ram    participant Alice@{ "type" : "bo
----------------------^
Image

Additional information

  • VS-Code version 1.114.0
  • mermaid-preview extension version: 2.1.2

Online version

This was reported and fixed on the online version: mermaid-js/mermaid#6935 but hasn't been fixed on the preview extension

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions