0.1.0 • Published 12 months ago
@beoe/rehype-gnuplot v0.1.0
@dat/rehype-gnuplot
Rehype plugin to generate Gnuplot diagrams in place of code fences. This:
```gnuplot
plot [-10:10] sin(x)
```will be converted to
<figure class="beoe gnuplot">
<svg>...</svg>
</figure>which looks like this:
Usage
import rehypeGnuplot from "@beoe/rehype-gnuplot";
const html = await unified()
.use(remarkParse)
.use(remarkRehype)
.use(rehypeGnuplot)
.use(rehypeStringify)
.process(`markdown`);Online documentation provides more details.