This PR introduces a rules file called .markdownlint.yml
, and a sizeable amount of documentation formatting from having applied these rules.
.markdownlint.yml
can be used by running npm package markdownlint
from the repo root. In this case, I ran:
0markdownlint . --ignore "doc/release-notes*" --ignore "doc/release-notes/*" --ignore "src/leveldb/*" --ignore "src/leveldb/**/*" --ignore "src/univalue/*" --ignore "src/univalue/**/*" --ignore "src/secp256k1/*" --ignore "src/secp256k1/**/*" --ignore "src/crypto/**/*" --ignore "ci/retry/*"
A few advantages come from adding this linter:
- Consistent formatting and improved readability, both rendered and as plaintext.
.markdownlint.yml
automatically offers warnings in VSCode if pluginmarkdownlint
installed.- Could be used to lint Doxygen comments.