Parsing error when assigning a hex color value to the last attribute of a linkStyle #5498
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
As the title says, trying to assign a hexadecimal color value to the last attribute of a
linkStyle
definition causes a parsing error. For example:The parsing error does not occur when you assign a hex color value to an attribute that is not the last attribute, nor if you assign a color name instead of a hex value to the last attribute 🤯
Steps to reproduce
Screenshots
Screenshot of the parsing error when rendered:
Code Sample
Setup
I've confirmed this behavior in both https://mermaid.live (as of
v10.9.0
) and https://develop.git.mermaid.live (as ofv11.0.0-alpha.7+e68125e
).Suggested Solutions
Based on the parsing error output, it appears to be an encoding problem while trying to parse the original hex value. I have verified that this is not a copy/paste issue from a corrupt source definition.
Additional Context
No response
The text was updated successfully, but these errors were encountered: