File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { Options , PresetName } from 'markdown-it'
2
2
import MarkdownIt from 'markdown-it'
3
3
4
+ export type {
5
+ PluginSimple ,
6
+ PluginWithOptions ,
7
+ PluginWithParams ,
8
+ } from 'markdown-it'
9
+
4
10
export interface MarkdownItAsyncOptions extends Omit < Options , 'highlight' > {
5
11
/**
6
12
* Highlighter function for fenced code blocks.
@@ -12,6 +18,8 @@ export interface MarkdownItAsyncOptions extends Omit<Options, 'highlight'> {
12
18
highlight ?: ( ( str : string , lang : string , attrs : string ) => string | Promise < string > ) | null | undefined
13
19
}
14
20
21
+ export type { MarkdownItAsyncOptions as Options }
22
+
15
23
const placeholder = ( id : string ) : string => `<pre>::markdown-it-async::${ id } ::</pre>`
16
24
const placeholderRe = / < p r e > : : m a r k d o w n - i t - a s y n c : : ( \w + ) : : < \/ p r e > / g
17
25
You can’t perform that action at this time.
0 commit comments