File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 23
23
"devDependencies" : {
24
24
"browserify" : " ^11.0.0" ,
25
25
"esmangle" : " ^1.0.0" ,
26
- "mdast" : " ^1.0.0" ,
27
- "mdast-comment-config" : " ^1.0.0" ,
28
- "mdast-github" : " ^1.0.0" ,
29
- "mdast-lint" : " ^1.0.0" ,
30
- "mdast-slug" : " ^2.0.0" ,
31
- "mdast-validate-links" : " ^1.0.0" ,
26
+ "remark" : " ^6.0.0" ,
27
+ "remark-cli" : " ^2.0.0" ,
28
+ "remark-preset-wooorm" : " ^1.0.0" ,
32
29
"nyc" : " ^9.0.1" ,
33
30
"tape" : " ^4.6.2" ,
34
31
"xo" : " ^0.17.1"
35
32
},
36
33
"scripts" : {
37
- "build-md" : " mdast . --quiet " ,
34
+ "build-md" : " remark . -foq " ,
38
35
"build-bundle" : " browserify index.js --no-builtins -s unistUtilFindAllBefore > unist-util-find-all-before.js" ,
39
36
"build-mangle" : " esmangle unist-util-find-all-before.js > unist-util-find-all-before.min.js" ,
40
37
"build" : " npm run build-md && npm run build-bundle && npm run build-mangle" ,
54
51
"ignore" : [
55
52
" unist-util-find-all-before.js"
56
53
]
54
+ },
55
+ "remarkConfig" : {
56
+ "presets" : " wooorm"
57
57
}
58
58
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ emphasis[1]
64
64
65
65
## API
66
66
67
- ### findAllBefore(parent, index|node\[ , test\ ] )
67
+ ### findAllBefore(parent, index|node\[ , test] )
68
68
69
69
Find the nodes before ` index ` (or ` node ` ), that pass ` test ` (when given).
70
70
Original file line number Diff line number Diff line change 2
2
3
3
var assert = require ( 'assert' ) ;
4
4
var test = require ( 'tape' ) ;
5
- var mdast = require ( 'mdast ' ) ;
5
+ var remark = require ( 'remark ' ) ;
6
6
var findAllBefore = require ( './' ) ;
7
7
8
- var tree = mdast . parse ( 'Some *emphasis*, **strongness**, and `code`.' ) ;
8
+ var tree = remark ( ) . parse ( 'Some *emphasis*, **strongness**, and `code`.' ) ;
9
9
var paragraph = tree . children [ 0 ] ;
10
10
var children = paragraph . children ;
11
11
You can’t perform that action at this time.
0 commit comments