File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { Buffer , SyntaxExtension , Token } from 'micromark/dist/shared-types'
2
+ import { Root } from 'mdast'
3
+ import { Type } from 'micromark/dist/constant/types'
4
+
5
+ export default fromMarkdown
6
+
7
+ export interface MdastExtension {
8
+ enter : Record < Type , ( token : Token ) => void >
9
+ exit : Record < Type , ( token : Token ) => void >
10
+ }
11
+
12
+ interface Options {
13
+ extensions ?: SyntaxExtension [ ]
14
+ mdastExtensions ?: MdastExtension [ ]
15
+ }
16
+
17
+ declare function fromMarkdown ( value : string | Buffer , options ?: Options ) : Root
18
+
19
+ declare function fromMarkdown (
20
+ value : string | Buffer ,
21
+ encoding ?: BufferEncoding ,
22
+ options ?: Options
23
+ ) : Root
Original file line number Diff line number Diff line change 27
27
" Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
28
28
],
29
29
"files" : [
30
- " index.js"
30
+ " index.js" ,
31
+ " index.d.ts"
31
32
],
33
+ "types" : " index.d.ts" ,
32
34
"dependencies" : {
35
+ "@types/mdast" : " ^3.0.3" ,
33
36
"mdast-util-to-string" : " ^1.0.0" ,
34
37
"micromark" : " ~2.9.0" ,
35
38
"parse-entities" : " ^2.0.0"
You can’t perform that action at this time.
0 commit comments