8000 Timeline Diagram syntax does not permit timestamps · Issue #6557 · mermaid-js/mermaid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Timeline Diagram syntax does not permit timestamps #6557

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
k12ish opened this issue May 2, 2025 · 1 comment
Open

Timeline Diagram syntax does not permit timestamps #6557

k12ish opened this issue May 2, 2025 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@k12ish
Copy link
k12ish commented May 2, 2025

Description

Timeline syntax does not permit the colon character in the time field.

Steps to reproduce

timeline
    title East Valley Nuclear Plant Incident Report
    2021-10-11 : Amazon Package containing fireworks mistakenly left in control room
    2021-10-12 14:00 : Technician A arrived at Facility with bag containing Four Juggling Pins
    2021-10-12 14:20 : Technician A arrived at control room and joined Technician B at console
    2021-10-12 14:28 : Technician C exited elevator, holding a birthday cake intended for Technician B
Loading

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

I'm currently using the Unicode raised colon character '˸' as a workaround, but this is not ideal for accessibility or for UX.

timeline
    title East Valley Nuclear Plant Incident Report
    2021-10-11 : Amazon Package containing fireworks mistakenly left in control room
    2021-10-12 14˸00 : Technician A arrived at Facility with bag containing Four Juggling Pins
    2021-10-12 14˸20 : Technician A arrived at control room and joined Technician B at console
    2021-10-12 14˸28 : Technician C exited elevator, holding a birthday cake intended for Technician B
Loading

I am unfamiliar with how Mermaid parses it's syntax, but the cleanest solution would be to distinguish between a colon surrounded by spaces, and a colon surrounded by numerical digits.

Additional Context

No response

@k12ish k12ish added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels May 2, 2025
@generrosity
Copy link
Contributor

As a workaround, you could use a character that resembles a colon like ˸

https://www.amp-what.com/unicode/search/colon

Yea - it looks like there is no 'escape character' to use colon (like : or `:) and even putting it in a "string" doesn't help the syntax. The titles are just freetext unfortuantely, so counting spaces is unlikely to work here.

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
0