0.4.1 • Published 9 months ago

@beoe/rehype-gnuplot v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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:

example of how generated graph looks

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.

0.1.0

12 months ago

0.3.0

12 months ago

0.2.0

12 months ago

0.5.0

8 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.4.2

9 months ago

0.0.2

1 year ago

0.0.1

2 years ago