hexo-filter-markdown-plantuml

support ```puml ``` format

Usage no npm install needed!

<script type="module">
  import hexoFilterMarkdownPlantuml from 'https://cdn.skypack.dev/hexo-filter-markdown-plantuml';
</script>

README

Introduction

This is a hexo markdown plugin which allows you to render plantuml code in you blog.

Hexo is a static blogging system written in Node.js. But hexo no support plantuml.

Installation

To install, run the following command in the root directory of hexo:

npm install hexo-filter-markdown-plantuml --save

Usage

{% plantuml %}
@startuml
Object <|-- ArrayList
Object : equals()
ArrayList : Object[] elementData
ArrayList : size()
@enduml
{% endplantuml %}
@startuml and @endpuml are ALWAYS required or the image will fail to be generated.

or

​```puml
@startuml
Object <|-- ArrayList
Object : equals()
ArrayList : Object[] elementData
ArrayList : size()
@enduml
​```

Plugin will pick up block body and replace it with generated base64 svg diagram.

puml and plantuml tags both work.

see more details at http://plantuml.com/sitemap-language-specification