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

The word "gantt" in a gantt diagram as a task is considered as invalid #5660

Open
MajorTom327 opened this issue Jul 22, 2024 · 0 comments
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@MajorTom327
Copy link

Description

gantt
    title A Gantt Diagram
    dateFormat  YYYY-MM-DD
    section Section
    A task           :a1, 2014-01-01, 30d
    Another task     :after a1  , 20d
    section Another
    Task in sec      :2014-01-12  , 12d
    Gantt      : 24d

This diagram is considered as invalid because the Gantt task is an invalid task name.

Steps to reproduce

  1. Setup a simple diagram
  2. Have a valid task defined starting with the keyword "gantt" or "Gantt".

The previous field have a mermaid that have the error.
If the task Gantt is replaced by \Gantt it's ok but show a \ in the task name for exemple

Screenshots

No response

Code Sample

gantt
    title A Gantt Diagram
    dateFormat  YYYY-MM-DD
    section Section
    A task           :a1, 2014-01-01, 30d
    Another task     :after a1  , 20d
    section Another
    Task in sec      :2014-01-12  , 12d
    Gantt      : 24d

https://mermaid.live/edit#pako:eNpVUcFqwzAM_RWhszPsLGuKb4WwnXrqLhu5iNhpwxK7pAqsC_n32XW6MmGw9PSehKQZG28sajySY64dBOOOews7eIsQVB0dRxpSyhDbVz8OxAAfwbL9PquqlLvYhjvv4JD-BO6A6fIFD9OkBORSFZlU4Ql4lmalOs8nOz4EmloOMSmAKDH_26z0BL5HTedicm1zb6HyqFb5qk4zJQrkhUGBgw3zdCbsYI6cGkPZwdaog2tsS1PPNdZuCVSa2B-urkHN42QFTue4kHVDqFvqLwE9k_v0friTQoh6xm_UUuAV9Uv5VG5lKQtZbvJis80XgT83vhI4-ul4-qtkTcd-3KcL3Q61_AIiaX7O



### Setup

- Mermaid version: Mermaid Live one
- Browser and Version: Brave [Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (arm64)](https://brave.com/latest/)

### Suggested Solutions

Enable escaping chart with `\`
Or ignore the "Gantt" keyword if seem in another line than the first diagram description line

### Additional Context

_No response_
@MajorTom327 MajorTom327 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jul 22, 2024
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