search

PlantUML Plugin for Typemill

This plugin allows you to generate PlantUML diagrams directly within your Typemill CMS content. It uses an external PlantUML server (defaulting to the public one) to render the diagrams within the robust flat-file architecture of Typemill.

Features

GitHub Repository

The code repository of the PlantUML plugin can be found on GitHub.

Requirements

Installation

  1. Download the plugin.
  2. Unzip the content.
  3. Upload the folder plantuml to your Typemill plugins directory plugins.
  4. The final path should be your-typemill-installation/plugins/plantuml.

Configuration

  1. Login to your Typemill administration dashboard.
  2. Go to System -> Plugins.
  3. Activate the PlantUML plugin.
  4. Click on Settings for the PlantUML plugin.
  5. Server URL: Enter the URL of the PlantUML server. Default is http://www.plantuml.com/plantuml.
  6. Output Format: Select SVG Vector (recommended) or PNG Image.
  7. Transparent Background: Check this box to make the background transparent (works best with SVG).
  8. Border Color: Enter a color (e.g., #393b41, black, red) to draw a border around the entire image. Leave empty for no border.
  9. Save the settings.

Usage

Rendering Diagrams

  1. Add a code block with the language identifier plantuml-diagram.
  2. Write your standard PlantUML code inside the block.
  3. You can optionaly provide visual parameters (align, padding, size).

Example:

```plantuml-diagram align="center" padding="10px" size="600px"
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml
```

Result:

Supported Parameters:

The plugin will process any plantuml-diagram block and dynamically render it as an image in your browser.

Displaying Code

To display PlantUML code as a code block (without rendering it), use the standard plantuml identifier:

```plantuml
@startuml
Alice -> Bob: This will be displayed as code.
@enduml
```

This allows you to document PlantUML syntax or show examples without the plugin intercepting them.

License

This plugin is open-sourced software licensed under the MIT license.

Author & Attribution

Typemill CMS: This plugin is exclusively designed for the Typemill CMS, an open-source flat-file CMS for text-driven websites established by Trendschau. Typemill plantUML Plugin Wrapper: Created by Mark Klein. PlantUML Encoder Engine: The PlantUmlEncoder.php Deflate/Base64 logic is credited to Jawira Portugal (jawira/plantuml-encoding), licensed under the MIT License.

Version Changelog


v1.5.0 | © 2026 by M. Klein