mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
72.77k stars 6.65k forks source link

# character broken in 0.5.8 #347

Closed vshesh closed 7 years ago

vshesh commented 8 years ago

I just tried the latest version of mermaid in the live editor and there is a weird bug where if "stroke:#000" (or any color with the # character) is the ONLY entity in a linkStyle declaration, the parser chokes:

graph TD
  A --> B
  linkStyle 0 stroke:#fee;

Chokes the parser. If i make the link linkStyle 0 stroke:#fee,fill:none; all is well again. Not sure why this is happening; documentation seems to suggest this should be okay.

knsv commented 8 years ago

Strange, this needs investigating!

tylerlong commented 7 years ago

Issue doesn't exist any more: https://mermaidjs.github.io/mermaid-live-editor/#/edit/Z3JhcGggVEQKICBBIC0tPiBCCiAgbGlua1N0eWxlIDAgc3Ryb2tlOiNmZWU7