mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update MD027/no-multiple-space-blockquote range to cover just the extra spaces (vs. including nearby syntax).
This commit is contained in:
parent
56ff097266
commit
4436d84b55
4 changed files with 63 additions and 61 deletions
|
@ -4556,7 +4556,8 @@ module.exports = {
|
|||
for (const token of siblings) {
|
||||
const { type } = token;
|
||||
if ((type === "linePrefix") && (previousType === "blockQuotePrefix")) {
|
||||
const { endColumn, startColumn, startLine, text } = token;
|
||||
const { startColumn, startLine, text } = token;
|
||||
const { length } = text;
|
||||
const line = params.lines[startLine - 1];
|
||||
addErrorContext(
|
||||
onError,
|
||||
|
@ -4564,10 +4565,10 @@ module.exports = {
|
|||
line,
|
||||
null,
|
||||
null,
|
||||
[ 1, Math.min(endColumn, line.length) ],
|
||||
[ startColumn, length ],
|
||||
{
|
||||
"editColumn": startColumn,
|
||||
"deleteCount": text.length
|
||||
"deleteCount": length
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue