Skip to content

GitGraph: Branch names not displayed when rendering examples from official documentation #6537

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

Open
nour0205 opened this issue Apr 27, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@nour0205
Copy link
Contributor

nour0205 commented Apr 27, 2025

Description

Hello Mermaid team 👋,

While testing the examples from the official GitGraph documentation, I noticed that branch names are missing in the rendered diagrams.

According to the documentation, branch names should be displayed by default when a branch is created.
However, when copying and running the provided examples, no branch names appear on the diagrams.

This issue seems to affect all gitGraph diagrams, even with very basic scripts.

Steps to reproduce

    gitGraph
       commit
       commit
       branch develop
       commit
       commit
       commit


Screenshots

Image

The diagram shows the commit nodes and lines, but no "develop" branch label appears.

expected

Image

Code Sample


Setup

Mermaid.js Version: v11.4.1
Browser and Version:Microsoft Edge v132.0.2957.115
OS: Windows 11

Suggested Solutions

No response

Additional Context

This problem might be related to these issues :
#6536
#6535

I will try to investigate these issues further please let me know if you have any suggestions or inquiries

@nour0205 nour0205 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Apr 27, 2025
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

1 participant