plantuml plugin of docsify
npm install docsify-plantuml ``html`
See Options for more details.
2. Insert script into docsify document:
`html`
plantuml:``markdown
$3
`plantuml
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication ResponseAlice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml
`
``
Options
skin
By default, we set the skin of the plantuml to a cleaner version for you.
However, You can still switch with this option (skin) if you prefer the classic one.All available values are:
-
default
- classicFor example:
`
`serverPath
By default, the official PlantUML server is used. If you have your own, configure it using the serverPath option:`
`renderSvgAsObject
By default, the svg is renderd inside an tag.
If you want interactive svg (like links) configure the renderSvgAsObject option:
This will render like: `
`
Please note that relative urls should start with $
``markdown
`plantuml
@startuml
Alice -> Bob: Authentication Request [[$./other-file docs]]
Bob --> Alice: Authentication Response [[$../other-file docs]]
@enduml
`
```