Skip to content

Commit 21f386e

Browse files
committed
Update remark
1 parent 2fee770 commit 21f386e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,15 @@
2323
"devDependencies": {
2424
"browserify": "^11.0.0",
2525
"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",
3229
"nyc": "^9.0.1",
3330
"tape": "^4.6.2",
3431
"xo": "^0.17.1"
3532
},
3633
"scripts": {
37-
"build-md": "mdast . --quiet",
34+
"build-md": "remark . -foq",
3835
"build-bundle": "browserify index.js --no-builtins -s unistUtilFindAllBefore > unist-util-find-all-before.js",
3936
"build-mangle": "esmangle unist-util-find-all-before.js > unist-util-find-all-before.min.js",
4037
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
@@ -54,5 +51,8 @@
5451
"ignore": [
5552
"unist-util-find-all-before.js"
5653
]
54+
},
55+
"remarkConfig": {
56+
"presets": "wooorm"
5757
}
5858
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ emphasis[1]
6464

6565
## API
6666

67-
### findAllBefore(parent, index|node\[, test\])
67+
### findAllBefore(parent, index|node\[, test])
6868

6969
Find the nodes before `index` (or `node`), that pass `test` (when given).
7070

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
var assert = require('assert');
44
var test = require('tape');
5-
var mdast = require('mdast');
5+
var remark = require('remark');
66
var findAllBefore = require('./');
77

8-
var tree = mdast.parse('Some *emphasis*, **strongness**, and `code`.');
8+
var tree = remark().parse('Some *emphasis*, **strongness**, and `code`.');
99
var paragraph = tree.children[0];
1010
var children = paragraph.children;
1111

0 commit comments

Comments
 (0)