How to add a caption to a pintorita UML (or any) diagram?

Hi all,
I would like to add caption to the following pintorita UML diagram. Any idea how to do it?
Thank you.


mindmap

@param layoutDirection TB

+ A

++ B

+++ C

+++ D

++ E

+++ F

+++ G

++ H

+++ I

+++ J

In order to add captions to diagrams, you would wrap them in a figure and use its caption argument.

1 Like

Thank you for the hint. Below is the solution

#figure (
  ```pintora
  mindmap
  @param layoutDirection TB
  + A
  ++ B
  +++ C
  +++ D
  ++ E
  +++ F
  +++ G
  ++ H
  +++ I
  +++ J
```,
caption: [dummy text]
)