Skip to content

Commit

Permalink
feat: export defaultRehypeGraphvizOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ai committed Jun 22, 2024
1 parent a4b3a4c commit 0ae3d13
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-pugs-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"rehype-graphviz": patch
---

Exports the default option as `defaultRehypeGraphgizOption`
12 changes: 10 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { type RehypeGraphvizOption, rehypeGraphviz } from "./plugin.js";
import {
type RehypeGraphvizOption,
defaultRehypeGraphvizOption,
rehypeGraphviz,
} from "./plugin.js";

export { rehypeGraphviz, type RehypeGraphvizOption };
export {
rehypeGraphviz,
type RehypeGraphvizOption,
defaultRehypeGraphvizOption,
};
export default rehypeGraphviz;
2 changes: 1 addition & 1 deletion src/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import remarkParse from "remark-parse";
import remarkRehype from "remark-rehype";
import { unified } from "unified";
import { beforeAll, describe, expect, test } from "vitest";
import { defaultRehypeGraphvizOption, rehypeGraphviz } from "./plugin.js";
import { defaultRehypeGraphvizOption, rehypeGraphviz } from "./index.js";

/**
* Convert markdown to HTML.
Expand Down

0 comments on commit 0ae3d13

Please sign in to comment.