typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 56 forks source link

update broke some existing Mermaid functions #5559

Closed tennr closed 1 year ago

tennr commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: see MD below

Expected behavior A clear and concise description of what you expected to happen.

Screenshots / Screencasts If applicable, add screenshots / screencasts to help explain your problem. https://i.imgur.com/7pOilnw.png https://i.imgur.com/NU8Fwc9.png https://i.imgur.com/JbxFKnh.png

Sample Markdown File

Left to Right in subgraphs are now rendering top to bottom


graph LR

subgraph thisTitle[As-is Flow of Inside Sales] style thisTitle fill:none, stroke:#444,stroke-width:.5,color:#AAA;

1(Cash/Preapproval) --> 2(Pack) --> 3(Boat Complete) --> 4(Pick) --> 5(Accounting Invoice) --> 6(Ship)

end


> yaml header defining title does not render the flowchart title
```mermaid
---
title: Node
---
flowchart LR
    id

MindMap bombs even with the sample provided at Mermaid.js.org

mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid

Desktop (please complete the following information):

Typora Version e.g: 1.5

Additional context Add any other context about the problem here.

abnerlee commented 1 year ago

For first file, now it is same with https://mermaid.live/ I think it is their newest spec.

For 2nd and 3rd mermaid sample, they are now fixed in 1.5.1-dev