File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 31
31
],
32
32
"types" : " types/index.d.ts" ,
33
33
"dependencies" : {
34
- "@types/mdast" : " ^3.0.0" ,
35
34
"collapse-white-space" : " ^1.0.0" ,
36
35
"detab" : " ^2.0.0" ,
37
36
"mdast-util-definitions" : " ^3.0.0" ,
43
42
"unist-util-visit" : " ^2.0.0"
44
43
},
45
44
"devDependencies" : {
45
+ "@types/mdast" : " ^3.0.0" ,
46
46
"browserify" : " ^16.0.0" ,
47
47
"dtslint" : " ^3.0.0" ,
48
48
"nyc" : " ^15.0.0" ,
Original file line number Diff line number Diff line change 20
20
npm install mdast-util-to-hast
21
21
```
22
22
23
+ [ npm] [ ] with [ TypeScript] [ ] support:
24
+
25
+ ``` sh
26
+ npm install mdast-util-to-hast @types/mdast
27
+ ```
28
+
23
29
## Use
24
30
25
31
Say we have the following ` example.md ` :
@@ -340,6 +346,8 @@ abide by its terms.
340
346
341
347
[ npm ] : https://docs.npmjs.com/cli/install
342
348
349
+ [ typescript ] : https://www.typescriptlang.org
350
+
343
351
[ license ] : license
344
352
345
353
[ author ] : https://wooorm.com
You can’t perform that action at this time.
0 commit comments