Skip to content

::icon(mdi mdi-fire) directives are silently ignored — no icons rendered on gc6 and gc7 nodes #7615

@EmnaBarbouch

Description

@EmnaBarbouch

Description

The two ::icon(mdi mdi-fire) directives in child3[Square]'s subtree produce no visible icons on the gc6 and gc7 nodes. The nodes render as plain circles with text only.
This is because the MDI (Material Design Icons) font/CSS is not loaded anywhere in the page, so the icon references resolve to nothing silently.

Steps to reproduce

  1. Create an HTML page with the mindmap code as provided (without any MDI stylesheet in <head>)
  2. Add a mindmap node with an ::icon(mdi mdi-fire) directive:
gc6((grand<br/>child 6))
::icon(mdi mdi-fire)
  1. Open the page in a browser (localhost:9000/mindmap.html)
  2. Observe the rendered mindmap
  3. Bug: The gc6 and gc7 nodes render as plain circles with text only — no fire icon appears, and no error or warning is shown to indicate the icon failed to load

Screenshots

Image

Code Sample

Icons declared but font never loaded:
html<head>
  <!-- No MDI stylesheet imported -->
</head>
gc6((grand<br/>child 6))
::icon(mdi mdi-fire)       ← renders nothing
gc7((grand<br/>grand<br/>child 8))
::icon(mdi mdi-fire)       ← renders nothing

Setup

  • Mermaid version: 11.12.1
  • Browser: Microsoft Edge

Suggested Solutions

Add the MDI stylesheet to :

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