
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
markdown-it-graph
Advanced tools
A markdown-it plugin that parses custom graph syntax like ```graph bar and outputs structured graph data
A
markdown-itplugin that adds support forgraphcode blocks to represent charts using human-friendly plain text.
With markdown-it-graph, you can write bar, line, pie, and dot (scatter) charts directly inside Markdown like this:
```graph bar
Jan | █████ 5
Feb | █████████ 8
Mar | █████████████ 12
```
The square bar characters (e.g. █████) are optional and purely visual. The actual chart uses the numeric values.
And this will be transformed into:
<graph-block type="bar" data-graph='{"type":"bar","data":[{"label":"Jan","value":5},...]}'>
</graph-block>
bar, line, pie, and dot chart typesnpm install markdown-it-graph
import MarkdownIt from 'markdown-it'
import markdownItGraph from 'markdown-it-graph'
const md = new MarkdownIt()
md.use(markdownItGraph)
const html = md.render(\`
\`\`\`graph line
Mon | 2
Tue | 5
Wed | 8
\`\`\`
\`)
Each graph block follows this format:
```graph [type]
Label | Value
```
type is optional. Defaults to bar.bar, line, pie, dot|This plugin only injects <graph-block> elements with structured data.
You render them however you like! Here's an example using react-chartjs-2:
import { Bar } from 'react-chartjs-2'
<GraphBlock type="bar" data={[{ label: 'Jan', value: 5 }, { label: 'Feb', value: 8 }]} />
You can mount <graph-block> elements dynamically using ReactDOM.createRoot.
```graph pie
Chrome | 65
Safari | 20
Firefox | 10
Edge | 5
```
MIT
This plugin was created to fill a gap between readable Markdown and easy data visualization — think of it like Markdown tables, but for charts.
FAQs
A markdown-it plugin that parses custom graph syntax like ```graph bar and outputs structured graph data
The npm package markdown-it-graph receives a total of 1 weekly downloads. As such, markdown-it-graph popularity was classified as not popular.
We found that markdown-it-graph demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.