Incorporate markdownlint-rule-extended-ascii into tests, linting, and documentation.

This commit is contained in:
David Anson 2024-05-13 22:57:47 -07:00
parent 4a1b3550d3
commit 22f1f064fd
5 changed files with 54 additions and 15 deletions

View file

@ -343,9 +343,12 @@ test("customRulesNpmPackage", (t) => new Promise((resolve) => {
// eslint-disable-next-line jsdoc/valid-types
/** @type import("../lib/markdownlint").Options */
const options = {
"customRules": [ require("./rules/npm") ],
"customRules": [
require("./rules/npm"),
require("markdownlint-rule-extended-ascii")
],
"strings": {
"string": "# Text\n\n---\n\nText\n"
"string": "# Text\n\n---\n\nText\n"
},
"resultVersion": 0
};
@ -353,6 +356,7 @@ test("customRulesNpmPackage", (t) => new Promise((resolve) => {
t.falsy(err);
const expectedResult = {};
expectedResult.string = {
"extended-ascii": [ 5 ],
"sample-rule": [ 3 ]
};
// @ts-ignore