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

0.3.1 • Public • Published

@beoe/rehype-vizdom

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

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

will be converted to

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

which can look like this:

TODO: add screenshot

Usage

import rehypeVizdom from "@beoe/rehype-vizdom";

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

Online documentation provides more details.

Readme

Keywords

Package Sidebar

Install

npm i @beoe/rehype-vizdom

Weekly Downloads

73

Version

0.3.1

License

MIT

Unpacked Size

5.46 kB

Total Files

6

Last publish

Collaborators

  • stereobooster