Skip to content

Commit 7aa31fe

Browse files
committed
Update mdast to remark
1 parent 4728db8 commit 7aa31fe

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
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

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"output": true,
23
"plugins": [
34
"comment-config",
45
"lint",

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

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"istanbul": "^0.3.0",
2525
"jscs": "^2.0.0",
2626
"jscs-jsdoc": "^1.0.0",
27-
"mdast": "^1.0.0",
28-
"mdast-comment-config": "^1.0.0",
29-
"mdast-github": "^0.3.0",
30-
"mdast-lint": "^0.4.0",
31-
"mdast-slug": "^0.1.1",
32-
"mdast-validate-links": "^0.3.1",
27+
"remark": "^3.0.0",
28+
"remark-comment-config": "^2.0.0",
29+
"remark-github": "^3.0.0",
30+
"remark-lint": "^2.0.0",
31+
"remark-slug": "^3.0.0",
32+
"remark-validate-links": "^2.0.0",
3333
"mocha": "^2.0.0"
3434
},
3535
"scripts": {
@@ -43,7 +43,7 @@
4343
"make": "npm run lint && npm run test-coverage",
4444
"bundle": "browserify index.js --no-builtins -s mdastUtilToString > mdast-util-to-string.js",
4545
"postbundle": "esmangle mdast-util-to-string.js > mdast-util-to-string.min.js",
46-
"build-md": "mdast . --output --quiet",
46+
"build-md": "remark . --quiet --frail",
4747
"build": "npm run bundle && npm run build-md"
4848
}
4949
}

readme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# mdast-util-to-string [![Build Status](https://img.shields.io/travis/wooorm/mdast-mdast-util-to-string.svg)](https://travis-ci.org/wooorm/mdast-mdast-util-to-string) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/mdast-mdast-util-to-string.svg)](https://codecov.io/github/wooorm/mdast-mdast-util-to-string)
22

3-
[**mdast**](https://github.com/wooorm/mdast) utility to get the plain text
4-
content of a node.
3+
[**remark**](https://github.com/wooorm/remark) utility to get the plain text
4+
content of an [**mdast**](https://github.com/wooorm/mdast) node.
55

66
## Installation
77

@@ -24,14 +24,14 @@ module, [uncompressed](mdast-util-to-string.js) and
2424
* Dependencies.
2525
*/
2626

27-
var mdast = require('mdast');
27+
var remark = require('remark');
2828
var toString = require('mdast-util-to-string');
2929

3030
/*
3131
* AST.
3232
*/
3333

34-
var ast = mdast.parse('Some *emphasis*, **strongness**, and `code`.');
34+
var ast = remark.parse('Some *emphasis*, **strongness**, and `code`.');
3535

3636
toString(ast);
3737
// 'Some emphasis, strongness, and code.'
@@ -52,7 +52,7 @@ the children of `node` and joins them (without spaces or newlines).
5252
5353
Parameters:
5454

55-
* `node` (`Node`) — [**mdast** node](https://github.com/wooorm/mdast/blob/master/doc/nodes.md);
55+
* `node` (`Node`) — [**mdast** node](https://github.com/wooorm/mdast#node);
5656

5757
Returns: `string` — text representation of `node`.
5858

0 commit comments

Comments
 (0)