@beoe/rehype-graphviz
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@beoe/rehype-graphviz

Rehype plugin to generate Graphviz diagrams in place of code fences. This

```dot
digraph G { Hello -> World }
```

will be converted to

<figure class="beoe graphviz">
  <svg>...</svg>
</figure>

which can look like this:

TODO: add screenshot

Usage

import rehypeGraphviz from "@beoe/rehype-graphviz";

const html = await unified()
  .use(remarkParse)
  .use(remarkRehype)
  .use(rehypeGraphviz)
  .use(rehypeStringify)
  .process(`markdown`);

Online documentation provides more details.

TODO

Readme

Keywords

Package Sidebar

Install

npm i @beoe/rehype-graphviz

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

6.95 kB

Total Files

6

Last publish

Collaborators

  • stereobooster