You need to have PlantUML installed in order to use this feature. To install PlantUML, see installation notes for further details.
Adding a diagram
To add one or more diagrams in a Metanorma document:
Begin a new block and use the attribute
The compiler now knows that PlantUML syntax follows.
Begin the diagram with
Enter your diagram using the PlantUML notation.
End the diagram with
[plantuml] @startuml Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml
Once you compile the document, the compiler will transform your text input into a PNG image. The images are stored in the plantuml directory.
Visit the PlantUML website to learn more about PlantUML and what kinds of diagrams it supports.