In plantuml it is possible to have after @startuml a filename that will be the name of the image file that is generated like in
@startuml ex_1
Alice -> Bob : Hi
@enduml
where the e.g. the file ex_1.png (provide png output is requested) will be generated.
the question I have is:
- What are the rules in respect to the filename?
- What will happen with the other parts on the @startuml line
So far I did some tests and got:
- not allowed characters are <, > and |
- an extension is stripped, so ex_1.jpeg will still generate ex_1.png
- something like
@startuml ex_3 ex_3a -> ex_3b : ex3c
Alice -> Bob : Hi
@enduml will result in a completely ignored diagram name and a diagram with just the Alice -> Bob part
@startuml ex_wa -> ex_wb : ex_weird
Bob -> Alice : hello_weird
@enduml will result in a diagram with both the ex_wa -> ex_wb : ex_weird and Bob -> Alice : hello_weird parts and no special filename.