Skip to content

Commit 7fd7f4e

Browse files
committed
Format markdown
1 parent cb2e3ea commit 7fd7f4e

File tree

3 files changed

+1505
-34
lines changed

3 files changed

+1505
-34
lines changed

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"karma-mocha-reporter": "^2.0.0",
4949
"karma-rollup-preprocessor": "^7.0.0",
5050
"karma-safari-launcher": "^1.0.0",
51+
"remark-cli": "^6.0.1",
52+
"remark-preset-wooorm": "^5.0.0",
5153
"rollup": "^1.0.0",
5254
"rollup-plugin-babel": "^4.0.1",
5355
"rollup-plugin-commonjs": "^10.0.0",
@@ -56,12 +58,17 @@
5658
"scripts": {
5759
"clean": "rm -rf dist",
5860
"build": "rollup -c",
59-
"lint": "eslint .",
61+
"lint": "remark . -qfo && eslint .",
6062
"test": "jest",
6163
"test:karma": "karma start --single-run --browsers ChromeHeadless,FirefoxHeadless,Safari karma.conf.js",
6264
"test:karma:chrome": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
6365
"test:karma:firefox": "karma start --single-run --browsers FirefoxHeadless karma.conf.js",
6466
"test:karma:safari": "karma start --single-run --browsers Safari karma.conf.js",
6567
"test:dev": "jest --watchAll"
68+
},
69+
"remarkConfig": {
70+
"plugins": [
71+
"preset-wooorm"
72+
]
6673
}
6774
}

readme.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ console.log(new XMLSerializer().serializeToString(el));
5555
// "<div xmlns="http://www.w3.org/1999/xhtml">World</div>"
5656
```
5757

58-
Due to the nature of various browser implementations, you may notice cross-browser differences in the serialized output, especially with respect to whitespace or self-closing tags. Buddy, that's the web!
58+
Due to the nature of various browser implementations, you may notice
59+
cross-browser differences in the serialized output, especially with respect to
60+
whitespace or self-closing tags.
61+
Buddy, that’s the web!
5962

6063
## API
6164

@@ -83,8 +86,4 @@ Transform a [HAST Node][node] to DOM `Node`.
8386

8487
[hast]: https://github.com/syntax-tree/hast
8588

86-
[hast-util-to-parse5]: https://github.com/syntax-tree/hast-util-to-parse5
87-
8889
[node]: https://github.com/syntax-tree/hast#ast
89-
90-
[vfile]: https://github.com/vfile/vfile

0 commit comments

Comments
 (0)