Update MD055/table-pipe-style to support "consistent" and other styles, use micromark positioning, report ranges, add more tests.

This commit is contained in:
David Anson 2023-12-30 18:15:38 -08:00
parent a563c082a5
commit 7d2248d211
28 changed files with 4413 additions and 185 deletions

View file

@ -529,6 +529,22 @@ for (const rule of rules) {
},
};
break;
case "MD055":
scheme.properties = {
"style": {
"description": "Table pipe style",
"type": "string",
"enum": [
"consistent",
"leading_only",
"trailing_only",
"leading_and_trailing",
"no_leading_or_trailing"
],
"default": "consistent"
}
};
break;
default:
custom = false;
break;