
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
markdown-it-diagrams
Advanced tools
Diagrams renderer for markdown-it, using svgbob, and mermaidjs.
Example code
An example svgbob diagram:
``` bob
.---.
/-o-/--
.-/ / /->
( * \/
'-. \
\ /
'
```
And a mermaid diagram:
``` mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
The svgbob-wasm dependency which provides svgbob support is a wasm module.
In order to load the dependency asynchronously, this plugin exposes an async function loadPluginFactory
which should be awaited to provide the plugin factory:
import {loadPluginFactory} from "markdown-it-diagrams";
import * as MarkdownIt from "markdown-it";
loadPluginFactory().then((plugin) => {
let md = new MarkdownIt({
html: true,
}).use(plugin);
let someMarkdown = "``` bob \n" +
" .---.\n" +
" /-o-/--\n" +
" .-/ / /->\n" +
"( * \\/\n" +
" '-. \\\n" +
" \\ /\n" +
" '\n" +
"```";
let html = md.render(someMarkdown);
console.log(html);
})
FAQs
Support svgbob and mermaid text-based diagrams in Markdown-It.
The npm package markdown-it-diagrams receives a total of 9 weekly downloads. As such, markdown-it-diagrams popularity was classified as not popular.
We found that markdown-it-diagrams 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
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.