mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Improve highlighting for MD044/proper-names, add more tests.
This commit is contained in:
parent
1668207213
commit
7acb3d72fd
4 changed files with 38 additions and 8 deletions
|
|
@ -234,11 +234,16 @@ function lintContent(
|
|||
errors.addDetail = function addDetail(lineNumber, detail) {
|
||||
addError(lineNumber, detail);
|
||||
};
|
||||
errors.addDetailIf = function addDetailIf(lineNumber, expected, actual) {
|
||||
if (expected !== actual) {
|
||||
addError(lineNumber, "Expected: " + expected + "; Actual: " + actual);
|
||||
}
|
||||
};
|
||||
errors.addDetailIf =
|
||||
function addDetailIf(lineNumber, expected, actual, range) {
|
||||
if (expected !== actual) {
|
||||
addError(
|
||||
lineNumber,
|
||||
"Expected: " + expected + "; Actual: " + actual,
|
||||
null,
|
||||
range);
|
||||
}
|
||||
};
|
||||
errors.addContext =
|
||||
function addContext(lineNumber, context, left, right, range) {
|
||||
if (context.length <= 30) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue