Skip to main content

Fence titles and language aliases

Titles become captions

A title="..." on the fence is used as both the <figcaption> and the accessible label of the diagram.

```plantuml title="Deployment topology"
@startuml
...
@enduml
```
Deployment topology (waiting to render)
Deployment topology

Without a title, the diagram still gets a sensible accessible label — PlantUML diagram — and no caption is shown:

PlantUML diagram (waiting to render)

The puml alias

puml works exactly like plantuml:

```puml
@startuml
...
@enduml
```
PlantUML diagram (waiting to render)

Case-insensitive

Docusaurus lower-cases fence languages before highlighting, and this plugin matches the same way, so PlantUML, PlantUml and PUML all work:

PlantUML diagram (waiting to render)

You can change the recognised list entirely with the languages option — for example languages: ['uml'] if you prefer that fence.