Skip to content

Commit 9355890

Browse files
committed
Update mdast to remark
1 parent a19e249 commit 9355890

11 files changed

+20
-17
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.{json,html,svg,css,mdastrc,eslintrc}]
11+
[*.{json,html,svg,css,remarkrc,eslintrc}]
1212
indent_size = 2
1313

1414
[*.md]
File renamed without changes.

.mdastrc renamed to .remarkrc

File renamed without changes.

bower.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"keywords": [
77
"mdast",
8+
"remark",
89
"markdown",
910
"node",
1011
"definition",

component.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"keywords": [
77
"mdast",
8+
"remark",
89
"markdown",
910
"node",
1011
"definition",

history.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--mdast setext-->
1+
<!--remark setext-->
22

33
<!--lint disable no-multiple-toplevel-headings-->
44

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function gather(node) {
7373
* Supports weird keys (like `__proto__`).
7474
*
7575
* @example
76-
* var ast = mdast.parse('[example]: http://example.com "Example"');
76+
* var ast = remark.parse('[example]: http://example.com "Example"');
7777
* var getDefinition = getDefinitionFactory(ast);
7878
* getDefinition('example');
7979
* // {type: 'definition', 'title': 'Example', ...}

mdast-util-definitions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function gather(node) {
7474
* Supports weird keys (like `__proto__`).
7575
*
7676
* @example
77-
* var ast = mdast.parse('[example]: http://example.com "Example"');
77+
* var ast = remark.parse('[example]: http://example.com "Example"');
7878
* var getDefinition = getDefinitionFactory(ast);
7979
* getDefinition('example');
8080
* // {type: 'definition', 'title': 'Example', ...}

package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"keywords": [
77
"mdast",
8+
"remark",
89
"markdown",
910
"node",
1011
"definition",
@@ -26,12 +27,12 @@
2627
"istanbul": "^0.3.0",
2728
"jscs": "^2.0.0",
2829
"jscs-jsdoc": "^1.0.0",
29-
"mdast": "^1.0.0",
30-
"mdast-comment-config": "^1.0.0",
31-
"mdast-github": "^0.3.0",
32-
"mdast-lint": "^1.0.0",
33-
"mdast-slug": "^1.0.0",
34-
"mdast-validate-links": "^0.3.0",
30+
"remark": "^3.0.0",
31+
"remark-comment-config": "^2.0.0",
32+
"remark-github": "^2.0.0",
33+
"remark-lint": "^2.0.0",
34+
"remark-slug": "^3.0.0",
35+
"remark-validate-links": "^2.0.0",
3536
"mocha": "^2.0.0"
3637
},
3738
"scripts": {
@@ -45,7 +46,7 @@
4546
"make": "npm run lint && npm run test-coverage",
4647
"bundle": "browserify index.js --no-builtins -s mdastUtilDefinitions > mdast-util-definitions.js",
4748
"postbundle": "esmangle mdast-util-definitions.js > mdast-util-definitions.min.js",
48-
"build-md": "mdast . --quiet",
49+
"build-md": "remark . --quiet --frail",
4950
"build": "npm run bundle && npm run build-md"
5051
}
5152
}

readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ and [compressed](mdast-util-definitions.min.js)).
1919
## Usage
2020

2121
```js
22-
var mdast = require('mdast');
22+
var remark = require('remark');
2323
var definitions = require('mdast-util-definitions');
2424

25-
var ast = mdast.parse('[example]: http://example.com "Example"');
25+
var ast = remark.parse('[example]: http://example.com "Example"');
2626

2727
var getDefinition = definitions(ast);
2828

@@ -57,4 +57,4 @@ Returns: `Node?` — Definition, if found.
5757

5858
## License
5959

60-
[MIT](LICENSE) @ [Titus Wormer](http://wooorm.com)
60+
[MIT](LICENSE) [@](https://github.com/) [Titus Wormer](http://wooorm.com)

test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
var assert = require('assert');
10-
var mdast = require('mdast');
10+
var remark = require('remark');
1111
var definitions = require('./index.js');
1212

1313
/*
@@ -22,7 +22,7 @@ describe('mdast-util-definitions', function () {
2222
});
2323

2424
it('should work', function () {
25-
var ast = mdast.parse('[example]: http://example.com "Example"');
25+
var ast = remark.parse('[example]: http://example.com "Example"');
2626
var getDefinition = definitions(ast);
2727

2828
assert.deepEqual(getDefinition('example'), {
@@ -47,7 +47,7 @@ describe('mdast-util-definitions', function () {
4747
});
4848

4949
it('should work on weird identifiers', function () {
50-
var ast = mdast.parse('[__proto__]: http://proto.com "Proto"');
50+
var ast = remark.parse('[__proto__]: http://proto.com "Proto"');
5151
var getDefinition = definitions(ast);
5252

5353
assert.deepEqual(getDefinition('__proto__'), {

0 commit comments

Comments
 (0)