Dotted arrow --> is also the close of comment blocks (HTML, XML, Markdown)

0 votes
asked Jul 2, 2020 in Wanted features by Fuhrmanator (1,700 points)
edited Jul 2, 2020 by Fuhrmanator

Some creative uses of embedded PlantUML in markdown break because a --> (dotted arrow) is the same as the end of a comment, e.g., <!-- ... -->

Would it be possible to support an alternate form, say --\> to prevent this problem?

1 Answer

+1 vote
answered Jul 2, 2020 by The-Lu (64,340 points)
edited Jul 2, 2020 by The-Lu

Hello F.,

A possible workaround, in order to use dotted (or dashed) arrow on sequence diagram, without use of '-->' will be:

@startuml
Foo -[dotted]-> Bar
@enduml


[Click to see on the PlantUML online server]

Compare the same result with '-->' and with '-[dotted]->':


[Click...]

If that can help,
Regards,
Th.

commented Jul 3, 2020 by plantuml (295,000 points)
Thanks for the workaround...

We did not even think about that !

Anyway, we have just released on new beta ( http://beta.plantuml.net/plantuml.jar ) that uses _ as escape char. We are trying to avoid \ as escape character because since it is used by many other programming langage, it can bring confusion when you embedded UML diagrams into source code.

So you can now have :

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuNBCoKnELT2rKt3AJrAmKiX8pSd9vmAnTNNZxHJ0iY3XJ2w7rBmKe0O0
...