Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gitbook-plugin-plantuml-svg
Advanced tools
This is inspired by dy93's work plugin-plantuml-cloud. There're already several PlantUML plugins for GitBook out there. However, most of them relies on a local PlantUML & Graphviz.
The plugin-plantuml-cloud uses the public PlantUML services. It saves people's effort to maintain the local plantuml.jar.
This plugin makes 2 additional improvements
<object data="..." type="image/svg+xml">
instead of <img>
, so that
the links in SVG
still work.# With NPM
$ npm install gitbook-plugin-plantuml-svg
# With Yarn
$ yarn add gitbook-plugin-plantuml-svg
In your book.json
, add plantuml-svg to the plugin list
{
"plugins": ["plantuml-svg"]
}
Say, you have graph/my-chart.puml
.
@startuml
object Hello
object World
Hello --> World
@enduml
In your Markdown document, put following lines.
{% uml src="graph/my-chart.puml" %}
{% enduml %}
By default, the file path is relative to the project root. If you want the path to be relative to current document, do
{% uml src="graph/my-chart.puml", relativeTo=file %}
{% enduml %}
The standalone PlantUML file is recommended for large graphs. However, for simple graphs, you can also use inline plugin PlantUML.
{% uml %}
@startuml
object Hello
object World
Hello --> World
@enduml
{% enduml %}
FAQs
Inject PlantUML into gitbook as SVG
The npm package gitbook-plugin-plantuml-svg receives a total of 3 weekly downloads. As such, gitbook-plugin-plantuml-svg popularity was classified as not popular.
We found that gitbook-plugin-plantuml-svg 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.