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

Material Design icons are not shown #5594

Open
amusarra opened this issue Jun 24, 2024 · 1 comment
Open

Material Design icons are not shown #5594

amusarra opened this issue Jun 24, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@amusarra
Copy link

Description

Reading the documentation https://mermaid.js.org/syntax/mindmap.html#icons-and-classes trying on LiveEditor and Markdown, I don't get the expected result, as documented. The icons are not displayed.

Steps to reproduce

  1. With this code
mindmap
    Root
        A
        ::icon(fa fa-book)
        B(B)
        ::icon(mdi mdi-language-java)

Code 1 - Mindmap code with mdi icon

the result should now be this

image

On the live editor, the result is this

image

The same behavior occurs when used within a Markdown document.

  1. With this command mmdc -i /tmp/test.mmd -o output.png -t dark -b transparent where the file /tmp/test.mmd referer to the Code 1, the result is incorrect, that is, the java language icon is not shown.
image

Screenshots

No response

Code Sample

Link to Live Editor https://mermaid.live/edit#pako:eNplUMFqwzAM_ZWgUwvOcAhdF99WtuMu2634osZK6rW2gmePtSH_PjeldLAHEo-nJwlphJYNgQJnvXE4aF9kvDPHK7vg-U6Vsi37RYdFh-WO-bC81zaLzfKf0xlb5CiP6PuEPZWf-I3ZBgIcBYfW5N3jpU1D3JMjDSpTg-GgQfsp-zBF_jj5FlQMiQSkwWCkF4t9QHcTB_SgRvgBJQWccn6onup1U69k01RSyvpxNQk4M-eOSgAZGzm8XU-fPzCP2M71v2teZ-NNC5z6PagOj180_QLoVWAY

Setup

  • Mermaid Live Editor version: 10.9.1
  • Browser and Version: Chrome 126.0.6478.62 (Official Build) (arm64)

  • Mermaid CLI version: 10.9.1
  • OS: macOS 14.5

Suggested Solutions

No response

Additional Context

No response

@amusarra amusarra added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jun 24, 2024
@mttfranci
Copy link

I noticed the same behaviour described by @amusarra for a new diagram I'm working on.

It would be helptful, at least, to note in the documentation if and which additional configuration is needed to make the example worl.

Thanks in advance.

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

2 participants