This remark-lint rule was created for free-programming-books-lint to enforce free-programming-books formatting guidelines.
This rule ensures that all list items are in alphabetical order
<!-- Invalid --> # Section- B- [A](#C) <!-- Valid --> # Section- [A](#C)- B
Using the rule
.remarkrc
Via npm install -g remark-clinpm install remark-lint remark-lint-alphabetize-lists
Then, set up your .remarkrc
:
{ "plugins": [ "lint", "lint-alphabetize-lists" ]}
Now you can use the following command to run the lint:
remark xxx.md
Via CLI
npm install -g remark-clinpm install remark-lint remark-lint-alphabetize-listsremark -u lint -u lint-alphabetize-lists xxx.md