Skip to content

Italic text in flowchart nodes is cut off #6787

@dwhieb

Description

@dwhieb

Description

Using italics in markdown text in flowchart nodes causes the text to be cut off on the right side. This occurs with various fonts I've tested.

Steps to reproduce

You can see in this diagram that the "d" is cut off on the right.

flowchart
  A[*word*]

  subgraph sub[Subgraph]
    B[*word*]
  end

  A --> B
Loading

Screenshots

Image

Code Sample


Setup

  • Mermaid version: This issue occurs in the editor on MermaidChart.com and in GitHub Mermaid blocks, so I assume it's whatever the latest version is.
  • Browser and Version: Edge 138.0.3351.83

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Required GroomingNeed discussion before start implementationStatus: ApprovedIs ready to be worked onType: 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