Eric Sun
Eric Sun

Reputation: 913

Mermaid gantt, how to create a milestone with multiline title

A MWE for mermaid gantt is as the following

gantt
dateFormat YY-MM-DD
        section Section
            Milestone A (4/15) : milestone, , 4/15/2024, 0D
            Milestone B (9/19) : milestone, , 9/19/2025, 0D

Yield the following enter image description here I now want to split the milestone title to multiple lines, like the following

enter image description here

Tried <br>, \n and <tspan>, both not taking effect.

Any suggestion on how to achieve this?

Upvotes: 0

Views: 244

Answers (0)

Related Questions