textlint-rule-footnote-order
v1.0.3
Published
textlint rule that sort footnote identifier(`[^1]`) order.
Downloads
6,081
Readme
textlint-rule-footnote-order
textlint rule that sort footnote identifier([^1]
) order.
This rule check that to use incremental number for footnote identifier.
- Limitation: This rule work only Markdown.
OK:
foo [^1]
bar [^2]
[^1]: foo is ...
[^2]: bar is ...
NG:
foo [^foo]
bar [^bar]
[^foo]: foo is ...
[^bar]: bar is ...
Install
Install with npm:
npm install textlint-rule-footnote-order
Usage
Via .textlintrc
(Recommended)
{
"rules": {
"footnote-order": true
}
}
Via CLI
textlint --rule footnote-order README.md
Options
startIndex
:number
- Default:
1
- Start number of footnode identifier
- Example)
^1
,^2
.^3
...
- Default:
{
"rules": {
"footnote-order": {
"startIndex": 1
}
}
}
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu