mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add detail to MD029/ol-prefix message to help distinguish 1/1/1 from 1/2/3.
This commit is contained in:
parent
0fd322a380
commit
f910fa0cb1
3 changed files with 7 additions and 5 deletions
|
|
@ -235,11 +235,12 @@ function lintContent(
|
|||
addError(lineNumber, detail);
|
||||
};
|
||||
errors.addDetailIf =
|
||||
function addDetailIf(lineNumber, expected, actual, range) {
|
||||
function addDetailIf(lineNumber, expected, actual, detail, range) {
|
||||
if (expected !== actual) {
|
||||
addError(
|
||||
lineNumber,
|
||||
"Expected: " + expected + "; Actual: " + actual,
|
||||
"Expected: " + expected + "; Actual: " + actual +
|
||||
(detail ? "; " + detail : ""),
|
||||
null,
|
||||
range);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue