Plugin for creating block-level UML diagrams in
markdown-it using an offline plantuml.jar.
Compared to markdown-it-plantuml, this plugin renders diagrams locally.
- Diagram source stays local and is not sent to an external rendering service.
- Rendering runs against your local Java + PlantUML runtime.
- Java is required on the machine where markdown is rendered.
- Node.js 20+
- Java installed and available on
PATH
```plantuml
@startuml
Bob -> Alice : hello
@enduml
```See plantuml.com for diagram syntax details.
npm install markdown-it-plantuml-exconst md = require('markdown-it')().use(require('markdown-it-plantuml-ex'));With custom markers:
const md = require('markdown-it')().use(require('markdown-it-plantuml-ex'), {
openMarker: '```plantuml',
closeMarker: '```',
});npm ci
npm run verifyUseful scripts:
npm run format- format repository files with Prettiernpm run format:check- verify formattingnpm run lint- run ESLintnpm run lint:fix- auto-fix lint issuesnpm test- run test suitenpm run verify- run format check, lint, and tests