mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Group items in "Related" section of README.md by category.
This commit is contained in:
parent
53a0ba18d8
commit
e1772ddc51
2 changed files with 23 additions and 12 deletions
25
README.md
25
README.md
|
|
@ -32,16 +32,21 @@ and test cases came directly from that project.
|
||||||
|
|
||||||
### Related
|
### Related
|
||||||
|
|
||||||
* [markdownlint-cli command-line interface for Node.js](https://github.com/igorshubovych/markdownlint-cli)
|
* CLI
|
||||||
* [GitHub Actions problem matcher for markdownlint-cli](https://github.com/xt0rted/markdownlint-problem-matcher)
|
* [markdownlint-cli command-line interface for Node.js](https://github.com/igorshubovych/markdownlint-cli)
|
||||||
* [grunt-markdownlint for the Grunt task runner](https://github.com/sagiegurari/grunt-markdownlint)
|
* GitHub
|
||||||
* [vscode-markdownlint extension for VS Code](https://marketplace.visualstudio.com/items/DavidAnson.vscode-markdownlint)
|
* [GitHub Super-Linter Action](https://github.com/github/super-linter)
|
||||||
* [GitHub Super-Linter Action](https://github.com/github/super-linter)
|
* [GitHub Actions problem matcher for markdownlint-cli](https://github.com/xt0rted/markdownlint-problem-matcher)
|
||||||
* [Sublime Text markdownlint for Sublime Text](https://packagecontrol.io/packages/SublimeLinter-contrib-markdownlint)
|
* Editor
|
||||||
* [linter-node-markdownlint extension for Atom](https://atom.io/packages/linter-node-markdownlint)
|
* [vscode-markdownlint extension for VS Code](https://marketplace.visualstudio.com/items/DavidAnson.vscode-markdownlint)
|
||||||
* [coc-markdownlint extension for Vim/Neovim](https://github.com/fannheyward/coc-markdownlint)
|
* [Sublime Text markdownlint for Sublime Text](https://packagecontrol.io/packages/SublimeLinter-contrib-markdownlint)
|
||||||
* [markdownlint/mdl gem for Ruby](https://rubygems.org/gems/mdl)
|
* [linter-node-markdownlint extension for Atom](https://atom.io/packages/linter-node-markdownlint)
|
||||||
* [Cake.Markdownlint addin for Cake build automation system](https://github.com/cake-contrib/Cake.Markdownlint)
|
* [coc-markdownlint extension for Vim/Neovim](https://github.com/fannheyward/coc-markdownlint)
|
||||||
|
* Tooling
|
||||||
|
* [grunt-markdownlint for the Grunt task runner](https://github.com/sagiegurari/grunt-markdownlint)
|
||||||
|
* [Cake.Markdownlint addin for Cake build automation system](https://github.com/cake-contrib/Cake.Markdownlint)
|
||||||
|
* Ruby
|
||||||
|
* [markdownlint/mdl gem for Ruby](https://rubygems.org/gems/mdl)
|
||||||
|
|
||||||
## Demonstration
|
## Demonstration
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1450,7 +1450,10 @@ tape("readme", (test) => {
|
||||||
let seenTags = false;
|
let seenTags = false;
|
||||||
let inTags = false;
|
let inTags = false;
|
||||||
md.parse(contents, {}).forEach(function forToken(token) {
|
md.parse(contents, {}).forEach(function forToken(token) {
|
||||||
if (token.type === "bullet_list_open") {
|
if (
|
||||||
|
(token.type === "bullet_list_open") &&
|
||||||
|
(token.level === 0)
|
||||||
|
) {
|
||||||
if (!seenRelated) {
|
if (!seenRelated) {
|
||||||
seenRelated = true;
|
seenRelated = true;
|
||||||
} else if (seenRelated && !seenRules) {
|
} else if (seenRelated && !seenRules) {
|
||||||
|
|
@ -1460,7 +1463,10 @@ tape("readme", (test) => {
|
||||||
seenTags = true;
|
seenTags = true;
|
||||||
inTags = true;
|
inTags = true;
|
||||||
}
|
}
|
||||||
} else if (token.type === "bullet_list_close") {
|
} else if (
|
||||||
|
(token.type === "bullet_list_close") &&
|
||||||
|
(token.level === 0)
|
||||||
|
) {
|
||||||
inRules = false;
|
inRules = false;
|
||||||
inTags = false;
|
inTags = false;
|
||||||
} else if (token.type === "inline") {
|
} else if (token.type === "inline") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue