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 (67,000 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:

Foo -[dotted]-> Bar

[Click to see on the PlantUML online server]

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


If that can help,

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 ( ) 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 :