@khanacademy/perseus-linter 4.8.2 → 4.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.js +3 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/es/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as KAS from '@khanacademy/kas';
|
|
|
4
4
|
import { parse, traverseContent } from '@khanacademy/pure-markdown';
|
|
5
5
|
import { vector } from '@khanacademy/kmath';
|
|
6
6
|
|
|
7
|
-
const libName="@khanacademy/perseus-linter";const libVersion="4.8.
|
|
7
|
+
const libName="@khanacademy/perseus-linter";const libVersion="4.8.3";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
8
8
|
|
|
9
9
|
const linterContextDefault={contentType:"",highlightLint:false,paths:[],stack:[]};
|
|
10
10
|
|
|
@@ -69,8 +69,8 @@ var ImageWidget = Rule.makeRule({name:"image-widget",severity:Rule.Severity.WARN
|
|
|
69
69
|
for accessibility, all images should have a text description.
|
|
70
70
|
Add a description in the "Alt Text" box of the image widget.`}if(alt.trim().length<8){return `Images should have alt text:
|
|
71
71
|
for accessibility, all images should have descriptive alt text.
|
|
72
|
-
This image's alt text is only ${alt.trim().length} characters long.`}if(alt.trim().length>
|
|
73
|
-
for accessibility, image alt text should not exceed
|
|
72
|
+
This image's alt text is only ${alt.trim().length} characters long.`}if(alt.trim().length>125){return `Images should have alt text:
|
|
73
|
+
for accessibility, image alt text should not exceed 125 characters.
|
|
74
74
|
This image's alt text is ${alt.trim().length} characters long.
|
|
75
75
|
Please pair your alt with a long description below if you need significantly
|
|
76
76
|
more text to sufficiently describe the image.`}}});
|