y-takey / atom-mermaid

Preview mermaid on atom editor
MIT License
42 stars 7 forks source link

Preview not picking up classDef default styles #41

Closed chrowe closed 7 years ago

chrowe commented 7 years ago

Running 3.0.0 on Atom 1.15.0

When I try

graph LR;
A
B
classDef default fill:#f9f,stroke:#333,stroke-width:4px;

in the online editor it works

When I do the same in Atom I don't see the styling applied screen shot 2017-04-03 at 5 39 14 pm

Applying styles with specific classes works fine.

y-takey commented 7 years ago

Hi @chrowe,

Thanks for your report. I fixed the issue, and upgrade the package (to v3.1.0).

chrowe commented 7 years ago

Thanks. Looks like 55c2d34f7efd52bf2005da1262951d0febed3673 did the trick.

I was able to check for updates in Atom, download the new version, restart Atom and it worked.

chrowe commented 7 years ago

screen shot 2017-04-03 at 9 25 56 pm 1

y-takey commented 7 years ago

Thank you for the check!

linusnorton commented 6 years ago

I am having the same issue with 3.2.1 using the same example chrowe highlighted. Is there anything I can do to help debug?

Edit: to be fair it doesn't seem to work in the online editor either. Has the format changed?

y-takey commented 6 years ago

Hi @linusnorton , Thanks for your report :) I think It's a mermaid's issue. https://github.com/knsv/mermaid/issues/582