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
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.
- expose options to load font metrics and images
Warning: no hard-coded metrics for 'Helvetica,Arial,sans-serif'. Falling back to 'Times' metrics
- check
tred
andunflatten
functions