0.4.2 • Published 10 months ago

@beoe/rehype-graphviz v0.4.2

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

@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

0.1.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.4.1

10 months ago

0.4.0

10 months ago

0.4.2

10 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago