Skip to content

Commit 835f26e

Browse files
committed
Update remark
1 parent 3f21441 commit 835f26e

File tree

2 files changed

+7
-28
lines changed

2 files changed

+7
-28
lines changed

package.json

+7-11
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
"util",
1313
"utility"
1414
],
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/wooorm/mdast-util-to-string.git"
18-
},
15+
"repository": "https://github.com/wooorm/mdast-util-to-string",
1916
"bugs": "https://github.com/wooorm/mdast-util-to-string/issues",
2017
"author": "Titus Wormer <[email protected]> (http://wooorm.com)",
2118
"contributors": [
@@ -29,17 +26,13 @@
2926
"browserify": "^13.0.0",
3027
"esmangle": "^1.0.0",
3128
"nyc": "^8.4.0",
32-
"remark-cli": "^1.0.0",
33-
"remark-comment-config": "^4.0.0",
34-
"remark-github": "^5.0.0",
35-
"remark-lint": "^4.0.0",
36-
"remark-slug": "^4.0.0",
37-
"remark-validate-links": "^4.0.0",
29+
"remark-cli": "^2.1.0",
30+
"remark-preset-wooorm": "^1.0.0",
3831
"tape": "^4.4.0",
3932
"xo": "^0.17.1"
4033
},
4134
"scripts": {
42-
"build-md": "remark . --quiet --frail",
35+
"build-md": "remark . --quiet --frail --output",
4336
"build-bundle": "browserify index.js --no-builtins -s mdastUtilToString > mdast-util-to-string.js",
4437
"build-mangle": "esmangle mdast-util-to-string.js > mdast-util-to-string.min.js",
4538
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
@@ -59,5 +52,8 @@
5952
"lines": 100,
6053
"functions": 100,
6154
"branches": 100
55+
},
56+
"remarkConfig": {
57+
"presets": "wooorm"
6258
}
6359
}

readme.md

-17
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# mdast-util-to-string [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat]
22

3-
<!--lint disable list-item-spacing heading-increment list-item-indent-->
4-
53
Get the plain text content of an [MDAST][] node.
64

75
## Installation
@@ -12,9 +10,6 @@ Get the plain text content of an [MDAST][] node.
1210
npm install mdast-util-to-string
1311
```
1412

15-
**mdast-util-to-string** is also available as an AMD, CommonJS, and
16-
globals module, [uncompressed and compressed][releases].
17-
1813
## Usage
1914

2015
```js
@@ -39,14 +34,6 @@ joins them (without spaces or newlines).
3934
> This is not a markdown to plain-text library.
4035
> Use [`strip-markdown`][strip-markdown] for that.
4136
42-
###### Parameters
43-
44-
* `node` ([`Node`][node]) — Node to stringify
45-
46-
###### Returns
47-
48-
`string` — text representation of `node`.
49-
5037
## License
5138

5239
[MIT][license] © [Titus Wormer][author]
@@ -65,8 +52,6 @@ joins them (without spaces or newlines).
6552

6653
[chat]: https://gitter.im/wooorm/remark
6754

68-
[releases]: https://github.com/wooorm/mdast-util-to-string/releases
69-
7055
[license]: LICENSE
7156

7257
[author]: http://wooorm.com
@@ -75,6 +60,4 @@ joins them (without spaces or newlines).
7560

7661
[mdast]: https://github.com/wooorm/mdast
7762

78-
[node]: https://github.com/wooorm/mdast#node
79-
8063
[strip-markdown]: https://github.com/wooorm/strip-markdown

0 commit comments

Comments
 (0)