0%

PlantUML

PlantUML is a powerful diagram generator.

Installation

1
npm install hexo-plantuml

Usage

Inline diagram

1
2
3
4
5
6
7
8
{% plantuml alt="Alt text" %}
@startuml
!include _plantuml/local.puml
a -> b
b -> c
a <- c
@enduml
{% endplantuml %}
aabbcc

From file

1
{% plantuml_from_file diagram.puml %}

Using this tag will not update the diagram when editing the puml file. You should also re-save the markdown file or restart the server.

aabbccPrueba máxima

From file, as PNG

1
{% plantuml_from_file diagram.puml format=png %}
aabbccPrueba máxima

As IMG (pre-rendered from file)

1
![Rendered Diagram](diagram.svg)

Rendered Diagram