$ cnpm install remark-preset-survivejs
:tada: Book markdown and prose style.
npm:
npm install remark-cli remark-preset-survivejs --save
Now add the following to your package.json
:
"scripts": {
"build-md": "remark ."
"test": "npm run build-md && ..."
},
"remarkConfig": {
"plugins": ["preset-survivejs"]
},
From now on, npm test
also checks markdown.
npm test
remark-preset-lint-recommended
, and adds a strict code-style (see index.js
);*
), and fenced code blocks (note: set output: true
in your config to benefit from this);Table of Contents
headers are kept up to date, with a depth of 3
(if output: true
);output: true
).Copyright 2014 - 2016 © taobao.org |