Skip to content

info and info showInfo diagrams render as unstyled plain text instead of a diagram #7649

@BARBOUCHEEMNA

Description

@BARBOUCHEEMNA

Description

When rendering an info diagram, only the raw version string v11.12.1 is displayed as plain text. No diagram is rendered. The same happens with info showInfo. The output has no visual container, no styling, and no diagram structure. Just a bare string dumped into the page.

Steps to reproduce

  1. Create an HTML page that imports Mermaid
  2. Add a
     block with just info
  3. Add a second block with info showInfo
  4. Open the page in a browser
  5. Bug: Both blocks render as unstyled plain text v11.12.1 instead of a diagram

Screenshots

Image

Code Sample

<pre class="mermaid">
  info
</pre>

<pre class="mermaid">
  info showInfo
</pre>

Setup

  • Mermaid version: 11.12.1
  • Browser: Microsoft Edge

Suggested Solutions

The info diagram type should render a styled visual panel displaying version metadata — not dump a raw string as plain text into the page body.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions