Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including hexo-local-plantuml with all npm packages installed. Try it out:

var hexoLocalPlantuml = require("hexo-local-plantuml")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hexo-local-plantuml v0.0.1

This plugin generates the PlantUML images locally rather than using the service at http://www.plantuml.com/plantuml/.

hexo-local-plantuml

This plugin generates the PlantUML images locally rather than using the service at http://www.plantuml.com/plantuml/.

This is necessary if you are using Hexo for private work and don't want your diagrams bounced off an external server.

Installation

$ npm install hexo-local-plantuml --save

Usage

{% plantuml %}
@startuml
Bob->Alice : hello
@enduml
{% endplantuml %}

Also you can put your definition in a "puml" or "plantuml" code block.

```puml
@startuml
Class01 <|-- Class02
@enduml
```

Configuration

You can configure this plugin in _config.yml.

plantuml:
  format: svg            # default is png
  asset_path: plant_uml  # default is puml
  svg_object: true       # use <object> Tag for svg files.

Additional requirements

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free