Open
Description
Description
In the current version of Mermaid's Gantt charts, it appears that line breaks (e.g., using
tags or newline characters such as \n) within task descriptions do not produce the intended effect of creating a new line. While these HTML tags and escape sequences work as expected in section titles, they seem to be ineffectual within the task descriptions.
Steps to reproduce
- Create a Gantt chart
- Insert a line break on task description
- Render the Gantt
Screenshots
![Captura de pantalla 2023-12-12 a la(s) 18 21 06](https://private-user-images.githubusercontent.com/37164177/290007078-7dd4ff09-21d0-4c80-8051-7d9c0c5a7730.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTE3ODIsIm5iZiI6MTczOTU1MTQ4MiwicGF0aCI6Ii8zNzE2NDE3Ny8yOTAwMDcwNzgtN2RkNGZmMDktMjFkMC00YzgwLTgwNTEtN2Q5YzBjNWE3NzMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE2NDQ0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4NjAzMmJhZWIzMmY4NWZmZjkxMDA2MDAxNjM1ZTMxYjMyZWM4NzEwYTdkYjcwZmFlYjU5OWI3YTYxZWIyYmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.T2q0FhR_ukp0y2evfUMXMGVAEdseT77v8g7cS7hZlOg)
Code Sample
gantt
title Sample Gantt Chart
dateFormat YYYY-MM-DD
section Sample Section
Task with line break<br>Second line: done, 2023-12-04, 2w
Setup
- Mermaid version:
- Browser and Version: [Chrome, Edge, Firefox]
Suggested Solutions
No response
Additional Context
No response