When annotation starts from alphabetic character, the diagram becomes blank.
Solution
Selectively remove the misbehaving annotations.
Reasoning
Currently, if you want to use class diagrams with annotations, you have to modify the mermaid source, which user should not be doing.
This PR does not fix the bug. It is a workaround to allow the user to use unmodified mermaid source, while the faulty annotations would not be displayed.
Tests
I have manually tested this PR with all the examples on mermaid and Class diagrams pages.
Expected
Annotations on classes should work.
Actual
When annotation starts from alphabetic character, the diagram becomes blank.
Solution
Selectively remove the misbehaving annotations.
Reasoning
Currently, if you want to use class diagrams with annotations, you have to modify the mermaid source, which user should not be doing.
This PR does not fix the bug. It is a workaround to allow the user to use unmodified mermaid source, while the faulty annotations would not be displayed.
Tests
I have manually tested this PR with all the examples on mermaid and Class diagrams pages.
Reference
39 - Class annotation doesn't work