remark-plainviz
v0.1.1
Published
Remark plugin to render PlainViz code blocks as SVG charts
Maintainers
Readme
remark-plainviz
A remark plugin to render PlainViz code blocks as SVG charts.
Installation
npm install remark-plainvizUsage
In your Markdown:
```plainviz
Type: Bar
Title: Monthly Sales
Jan: 20
Feb: 45
Mar: 80
Apr: 60
```In your remark pipeline:
import { remark } from 'remark';
import remarkHtml from 'remark-html';
import remarkPlainViz from 'remark-plainviz';
const result = await remark()
.use(remarkPlainViz)
.use(remarkHtml)
.process(markdownContent);Options
remarkPlainViz({
className: 'my-chart-class' // default: 'plainviz-chart'
})License
MIT
