Skip to content

Images are not rendered correctly in mermaid images #40562

@msche

Description

@msche

Code of Conduct

What article on docs.github.com is affected?

Documentation: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams

When including images in mermaid diagram it is not properly rendered

flowchart LR
    USER["TEST FOR user"]
    USER@{ img: "https://api.iconify.design/uil:user.svg", h: 50, constraint: "on"}
Loading

Also the alternative to include the image within the text box is not properly rendered:

flowchart LR
    USER["TEST FOR<img src='https://api.iconify.design/uil:user.svg'/> user"]
Loading

What part(s) of the article would you like to see updated?

Add remark in documentation that images in mermaid are not supported

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamget startedContent related to "Getting Started" doc set

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions