Update MD027/no-multiple-space-blockquote range to cover just the extra spaces (vs. including nearby syntax).

This commit is contained in:
David Anson 2024-02-26 20:34:47 -08:00
parent 56ff097266
commit 4436d84b55
4 changed files with 63 additions and 61 deletions

View file

@ -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
}
);
}