Package Exports
- remark-preset-github
- remark-preset-github/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remark-preset-github) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remark-preset-github
GitHub markdown and prose style.
Learn more about presets in unified's docs.
NOTE: Feel free to open an issue if something isn't working right.
Installation
npm:
npm install remark-cli remark-preset-github --saveNow add the following to your package.json:
"scripts": {
"build-md": "remark ."
"test": "npm run build-md && ..."
},
"remarkConfig": {
"plugins": [
"preset-github"
]
},From now on, npm test also checks markdown.
npm testChecks
Markdown
- Adds a license section
- Adds a contributors section
- Extends
remark-preset-lint-recommended, and adds a strict code-style (seeindex.js) - Markdown is compiled with asterisk list-item bullets (
*), and fenced code blocks (note: setoutput: truein your config to benefit from this) - How remark compiles can be configured inline with comments
Table of Contentsheaders are kept up to date, with a depth of3(ifoutput: true)- GH references, like mentions or issue references, are
linked (if
output: true)
Natural Language
See retext-preset-github for more info.
- English parsing
- Two spaces between sentences
- Checks "indefinite articles": "a" or "an"
- Checks quotes and apostrophes (
“”>"") - Checks accidental repeated words
- Checks diacritics
- Checks redundant acronyms
- Checks incorrectly placed apostrophes in contractions
Contributors
| Name | website |
|---|---|
| Nick Baugh | https://niftylettuce.com |
License
MIT © Titus Wormer