mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
648 stars 119 forks source link

Flowchart link to subroutine has no arrow #106

Closed philippeqc closed 3 years ago

philippeqc commented 3 years ago

Hi,

In a flowchart, I have observed the arrow head is missing when reaching certain shapes of nodes. The behavior is correct when the node reached is the default rectangular shape Desc or A[Desc], the round edge shape A(Desc) or the stadium shape A([Desc]) but faulty for any other I could try such as B[[subroutine]], C>asymmetric], D{{hexagonal}}, E[/parallelogram/], F[\alt parallelogram\], G[/trapezoid\], H[/alt trapezoid\] and I>alt trapezoid].

The following sample:

flowchart TB
    A & B --> C & D[[D]]

incorrectly produces: Flowchart

This behavior is not observed when using the Mermaid Live Editor

Changing the mermaid required version to 8.10.1 in package.json fixed the issue in the Extension Development Host for me. The output correctly becomes: FlowchartFixed

As a first time user of both this extension and mermaid, I would describe myself as highly unqualified to validate that no issues are introduced through this change.

Thanks for the extension.