Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
hexo-filter-plantuml
Advanced tools
@wafer-li 's hexo-filter-plantuml has been transfered to me duo to maintain issues.
I have created another hexo plugin called hexo-filter-kroki, which supports 20+ diagrams (including plantuml).
npm install --save hexo-filter-plantuml
No configuration required. By default, it will send your text to plantuml.com
for rendering, and the base64-encoded images will be inlined in the html.
Please keep in mind, if you want more about privacy/safety, please replace your own self-hosting render server.
plantuml:
# Local or PlantUMLServer.
render: "PlantUMLServer"
# The render server, you can also create your self-hosting sever
# self-hosting cmd: java -jar /usr/local/Cellar/plantuml/1.2021.5/libexec/plantuml.jar -picoweb
# server: http://localhost:8080/plantuml
server: "http://www.plantuml.com/plantuml"
# "inline": <svg>xxx<svg/>
# "inlineUrlEncode": <img src='data:image/svg+xml;>
# "inlineBase64": <img src='data:image/svg+xml;base64>
# "localLink": <img src="/assert/puml/xxxx.svg">
# "externalLink": <img src="http://www.plantuml.com/plantuml/svg/xxx">
link: "inline"
# common options: svg/png
outputFormat: "svg"
It may be slower for plantuml.jar will restart JVM per code fragment.
plantuml:
# Local or PlantUMLServer.
render: "Local"
# "inline": <svg>xxx<svg/>
# "inlineUrlEncode": <img src='data:image/svg+xml;>
# "inlineBase64": <img src='data:image/svg+xml;base64>
# "localLink": <img src="/assert/puml/xxxx.svg">
link: "inline"
# where your dot binary
GraphvizDotFile: "/usr/local/bin/dot"
# where your jar
PlantJar: "/usr/local/Cellar/plantuml/1.2021.5/libexec/plantuml.jar",
# common options: svg/png
outputFormat: "svg"
puml
and plantuml
directives both work.
```plantuml
@startuml
Object <|-- ArrayList
Object : equals()
ArrayList : Object[] elementData
ArrayList : size()
@enduml
```
@startuml
and@endpuml
are ALWAYS required or the image will fail to be generated.
or
{% plantuml %}
@startuml
Object <|-- ArrayList
Object : equals()
ArrayList : Object[] elementData
ArrayList : size()
@enduml
{% endplantuml %}
Plugin will pick up block body and replace it with generated base64 svg diagram.
see more details at http://plantuml.com/sitemap-language-specification
FAQs
Using PlantUML to generate UML Diagram for hexo
The npm package hexo-filter-plantuml receives a total of 32 weekly downloads. As such, hexo-filter-plantuml popularity was classified as not popular.
We found that hexo-filter-plantuml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.