gravizo icon indicating copy to clipboard operation
gravizo copied to clipboard

Using PlantUML new activity syntax renders arrow text as activity

Open ztorage opened this issue 7 years ago • 4 comments

@startuml
start
-> transition;
end
@enduml

renders as

gr1

instead of

gr2

Anything can be done? Special escaping? Workaround?

Thanks.

ztorage avatar Jan 04 '18 09:01 ztorage

Hi @ztorage, I have tested this code in plantuml server online, and returns the same result as gravizo:

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

TLmaK0 avatar Jan 04 '18 15:01 TLmaK0

Hi again, Mind the semicolon trailing -> transition;. This is the correct example on PlantUML's server: http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuG8pk7Jj54gA4lEACqioy_EikLBpKhWSW0HG0G00

The syntax is outlined here: http://plantuml.com/activity-diagram-beta#arrow

ztorage avatar Jan 04 '18 20:01 ztorage

ops!!! sorry! I will take a look! thanks

TLmaK0 avatar Jan 05 '18 01:01 TLmaK0

I don't know which version of plantUML is used in backend of gravizo now. PlantUML has new syntax for activity diagram. http://plantuml.com/activity-diagram-beta.

I have tried the following code

@startuml

start

repeat
  :read data;
  :generate diagrams;
repeat while (more data?)

stop

@enduml

![](<img src='https://g.gravizo.com/svg? @startuml;

start'

repeat; :read data; :generate diagrams; repeat while (more data?)

stop;

@enduml; '/>)

It could not be rendered by gravizo. It would be great if you could take look into it. By the way, the old syntax could not see if you browse in plantUML website without direct link to http://plantuml.com/activity-diagram-legacy

cczhong11 avatar May 25 '18 13:05 cczhong11