-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C4 PlantUML elements with parameters passed with $ are not recognized #100
Comments
@dgassma : since all the c4 stuff is coming from you, do you have an idea why this is happening? |
@philippsimon : you are right and I am sorry for the inconvenience. The current implementation is partly optional parameter parsing. Take a look at the C4 tests in plantuml-parser:
I already have an idea how to fix it in my mind. However, I am not sure, if the library should support the old (wrong) parsing as well? I am going to try to provide a fix by the end of week. |
@dgassma I would actually allow both. I tested it and both works. So I guess others could have interpreted the same as you and it also works. |
I just saw that for mermaidjs they already created a parser for C4 diagrams: |
@dgassma i don't have a strong opinion if we should support the old parsing as well. I rarely use C4 so I can not really speak from experience. Sorry.. @philippsimon looking at the parsing grammar in mermaid; looks cool and I would be super happy if I don't have to support C4 in a PEG in this project. But I am not quite sure if there's a working Jison to PEG translator and I am not even quite sure if our grammar isn't better, i think @dgassma did quite a good job :) |
Describe the bug
When I add elements and pass the arguments like it's shown on the C4 PlantUML page with a $-character (
$descr="description"
) these elements are not recognized.In general nearly all examples on the C4 PlantUML page can't be displayed because of that issue.
To Reproduce
Steps to reproduce the behavior:
PlantUML
Here more and it shows that it's a valid syntax
Expected behavior
The elements should be returned.
The text was updated successfully, but these errors were encountered: