Skip to content

Commit 46bbfbc

Browse files
committed
feat: re-expose types
1 parent 221096c commit 46bbfbc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import type { Options, PresetName } from 'markdown-it'
22
import MarkdownIt from 'markdown-it'
33

4+
export type {
5+
PluginSimple,
6+
PluginWithOptions,
7+
PluginWithParams,
8+
} from 'markdown-it'
9+
410
export interface MarkdownItAsyncOptions extends Omit<Options, 'highlight'> {
511
/**
612
* Highlighter function for fenced code blocks.
@@ -12,6 +18,8 @@ export interface MarkdownItAsyncOptions extends Omit<Options, 'highlight'> {
1218
highlight?: ((str: string, lang: string, attrs: string) => string | Promise<string>) | null | undefined
1319
}
1420

21+
export type { MarkdownItAsyncOptions as Options }
22+
1523
const placeholder = (id: string): string => `<pre>::markdown-it-async::${id}::</pre>`
1624
const placeholderRe = /<pre>::markdown-it-async::(\w+)::<\/pre>/g
1725

0 commit comments

Comments
 (0)