From 0ae3d135e0f0b39f73e308f9e547c5c04de9ec8b Mon Sep 17 00:00:00 2001 From: rai Date: Sat, 22 Jun 2024 10:49:45 +0900 Subject: [PATCH] feat: export defaultRehypeGraphvizOptions --- .changeset/chatty-pugs-beg.md | 5 +++++ src/index.ts | 12 ++++++++++-- src/plugin.test.ts | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .changeset/chatty-pugs-beg.md diff --git a/.changeset/chatty-pugs-beg.md b/.changeset/chatty-pugs-beg.md new file mode 100644 index 0000000..6535b84 --- /dev/null +++ b/.changeset/chatty-pugs-beg.md @@ -0,0 +1,5 @@ +--- +"rehype-graphviz": patch +--- + +Exports the default option as `defaultRehypeGraphgizOption` diff --git a/src/index.ts b/src/index.ts index 2d2b791..0bf41e2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; diff --git a/src/plugin.test.ts b/src/plugin.test.ts index 9f84960..10191b4 100644 --- a/src/plugin.test.ts +++ b/src/plugin.test.ts @@ -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.