mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
71.11k stars 6.4k forks source link

How to put URL in timeline ? #5493

Open pinage404 opened 5 months ago

pinage404 commented 5 months ago

Description

Using URL in a timeline break it

Steps to reproduce

  1. Write a timeline
  2. Add an URL

Screenshots

Parse error on line 2:
...ine    2014 : https://mermaid.js.org/
----------------------^
Expecting 'EOF', 'SPACE', 'NEWLINE', 'title', 'acc_title', 'acc_descr', 'acc_descr_multiline_value', 'section', 'period', 'event', got 'INVALID'

Code Sample

timeline
    2014 : https://mermaid.js.org/

Setup

Suggested Solutions

If the content was interpreted as Markdown first, the problem would maybe not happen

Probably related https://github.com/mermaid-js/mermaid/issues/4743

Additional Context

No response