This Mermaid gantt chart display improperly

I have no idea why this doesn’t work. This code should work but it doesn’t:

gantt
    dateFormat  MM-DD
    axisformat  %d/%m
    title       Adding GANTT diagram functionality to mermaid

    section A section
    Lên nội dung chi tiết              : done, noidung, after des, 3d
    Làm bảng lượng giá kết quả         : bangLuongGia, after noidung, 3d

    section Truyền thông
    Làm bài truyền thông               : done, baitruyenthong, after bangKhaoSat, 2d
    Thiết kế ảnh                       : done, thietkeanh, after baitruyenthong, 2d
    Đăng lên Discord                   : done, milestone, after thietkeanh baitruyenthong bangKhaoSat, 2d
    Đăng lên group                     : done, milestone, 2d
    
    section Sự kiện
	Sự kiện                            : crit, milestone, 3h

    section Công việc<br>sau sự kiện
    Gửi email sau sự kiện              : milestone, 0h
	Lượng giá sau sự kiện              : 7d
	Làm bài truyền thông sau sự kiện   : 7d
    Đăng lên Discord                   : milestone, 2d
    Đăng lên group                     : milestone, 2d
    Đăng lên page                      : milestone, 2d

To fix it, I have to add a task at the top:

gantt
    dateFormat  MM-DD
    axisformat  %d/%m
    title       Adding GANTT diagram functionality to mermaid

    section A section
    Active task                        : des, 01-09 %% <————————————— this line
    Lên nội dung chi tiết              : done, noidung, after des 3d
    Làm bảng lượng giá kết quả         : bangLuongGia, after noidung, 3d

    section Truyền thông
    Làm bài truyền thông               : done, baitruyenthong, after bangKhaoSat, 2d
    Thiết kế ảnh                       : done, thietkeanh, after baitruyenthong, 2d
    Đăng lên Discord                   : done, milestone, after thietkeanh baitruyenthong bangKhaoSat, 2d
    Đăng lên group                     : done, milestone, 2d
    
    section Sự kiện
	Sự kiện                            : crit, milestone, 3h

    section Công việc<br>sau sự kiện
    Gửi email sau sự kiện              : milestone, 0h
	Lượng giá sau sự kiện              : 7d
	Làm bài truyền thông sau sự kiện   : 7d
    Đăng lên Discord                   : milestone, 2d
    Đăng lên group                     : milestone, 2d
    Đăng lên page                      : milestone, 2d

GitHub renders the code correctly. Why does this happen?

looks fixed in 1.1.13

do you know what happened?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.