mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD009/no-trailing-spaces with code_blocks parameter to allow reporting/fixing trailing spaces in indented/fenced code blocks (fixes #1181).
Some checks are pending
Checkers / linkcheck (push) Waiting to run
Checkers / spellcheck (push) Waiting to run
CI / build (20, macos-latest) (push) Waiting to run
CI / build (20, ubuntu-latest) (push) Waiting to run
CI / build (20, windows-latest) (push) Waiting to run
CI / build (22, macos-latest) (push) Waiting to run
CI / build (22, ubuntu-latest) (push) Waiting to run
CI / build (22, windows-latest) (push) Waiting to run
CI / build (24, macos-latest) (push) Waiting to run
CI / build (24, ubuntu-latest) (push) Waiting to run
CI / build (24, windows-latest) (push) Waiting to run
CI / pnpm (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
TestRepos / build (latest, ubuntu-latest) (push) Waiting to run
UpdateTestRepos / update (push) Waiting to run
Some checks are pending
Checkers / linkcheck (push) Waiting to run
Checkers / spellcheck (push) Waiting to run
CI / build (20, macos-latest) (push) Waiting to run
CI / build (20, ubuntu-latest) (push) Waiting to run
CI / build (20, windows-latest) (push) Waiting to run
CI / build (22, macos-latest) (push) Waiting to run
CI / build (22, ubuntu-latest) (push) Waiting to run
CI / build (22, windows-latest) (push) Waiting to run
CI / build (24, macos-latest) (push) Waiting to run
CI / build (24, ubuntu-latest) (push) Waiting to run
CI / build (24, windows-latest) (push) Waiting to run
CI / pnpm (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
TestRepos / build (latest, ubuntu-latest) (push) Waiting to run
UpdateTestRepos / update (push) Waiting to run
This commit is contained in:
parent
7beb9fc9d0
commit
a55d5499e2
16 changed files with 590 additions and 34 deletions
|
|
@ -42,6 +42,8 @@
|
|||
"MD009": {
|
||||
// Spaces for line break
|
||||
"br_spaces": 2,
|
||||
// Include code blocks
|
||||
"code_blocks": false,
|
||||
// Allow spaces for empty lines in list items
|
||||
"list_item_empty_lines": false,
|
||||
// Include unnecessary breaks
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ MD007:
|
|||
MD009:
|
||||
# Spaces for line break
|
||||
br_spaces: 2
|
||||
# Include code blocks
|
||||
code_blocks: false
|
||||
# Allow spaces for empty lines in list items
|
||||
list_item_empty_lines: false
|
||||
# Include unnecessary breaks
|
||||
|
|
|
|||
|
|
@ -161,6 +161,12 @@ for (const rule of rules) {
|
|||
"default": 2
|
||||
};
|
||||
// @ts-ignore
|
||||
subscheme.properties.code_blocks = {
|
||||
"description": "Include code blocks",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
};
|
||||
// @ts-ignore
|
||||
subscheme.properties.list_item_empty_lines = {
|
||||
"description": "Allow spaces for empty lines in list items",
|
||||
"type": "boolean",
|
||||
|
|
|
|||
|
|
@ -512,6 +512,11 @@
|
|||
"minimum": 0,
|
||||
"default": 2
|
||||
},
|
||||
"code_blocks": {
|
||||
"description": "Include code blocks",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"list_item_empty_lines": {
|
||||
"description": "Allow spaces for empty lines in list items",
|
||||
"type": "boolean",
|
||||
|
|
@ -563,6 +568,11 @@
|
|||
"minimum": 0,
|
||||
"default": 2
|
||||
},
|
||||
"code_blocks": {
|
||||
"description": "Include code blocks",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"list_item_empty_lines": {
|
||||
"description": "Allow spaces for empty lines in list items",
|
||||
"type": "boolean",
|
||||
|
|
|
|||
|
|
@ -512,6 +512,11 @@
|
|||
"minimum": 0,
|
||||
"default": 2
|
||||
},
|
||||
"code_blocks": {
|
||||
"description": "Include code blocks",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"list_item_empty_lines": {
|
||||
"description": "Allow spaces for empty lines in list items",
|
||||
"type": "boolean",
|
||||
|
|
@ -563,6 +568,11 @@
|
|||
"minimum": 0,
|
||||
"default": 2
|
||||
},
|
||||
"code_blocks": {
|
||||
"description": "Include code blocks",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"list_item_empty_lines": {
|
||||
"description": "Allow spaces for empty lines in list items",
|
||||
"type": "boolean",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue