@khanacademy/perseus-linter 1.2.17 → 1.2.18
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 +2 -11
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/rules/math-font-size.d.ts +0 -3
package/dist/es/index.js
CHANGED
|
@@ -1155,15 +1155,6 @@ var MathEmpty = Rule.makeRule({
|
|
|
1155
1155
|
message: "Empty math: don't use $$ in your markdown."
|
|
1156
1156
|
});
|
|
1157
1157
|
|
|
1158
|
-
var MathFontSize = Rule.makeRule({
|
|
1159
|
-
name: "math-font-size",
|
|
1160
|
-
severity: Rule.Severity.GUIDELINE,
|
|
1161
|
-
selector: "math, blockMath",
|
|
1162
|
-
pattern: /\\(tiny|Tiny|small|large|Large|LARGE|huge|Huge|scriptsize|normalsize)\s*{/,
|
|
1163
|
-
message: `Math font size:
|
|
1164
|
-
Don't change the default font size with \\Large{} or similar commands`
|
|
1165
|
-
});
|
|
1166
|
-
|
|
1167
1158
|
var MathFrac = Rule.makeRule({
|
|
1168
1159
|
name: "math-frac",
|
|
1169
1160
|
severity: Rule.Severity.GUIDELINE,
|
|
@@ -1293,7 +1284,7 @@ do not put widgets inside of tables.`
|
|
|
1293
1284
|
});
|
|
1294
1285
|
|
|
1295
1286
|
// TODO(davidflanagan):
|
|
1296
|
-
var AllRules = [AbsoluteUrl, BlockquotedMath, BlockquotedWidget, DoubleSpacingAfterTerminal, ExpressionWidget, ExtraContentSpacing, HeadingLevel1, HeadingLevelSkip, HeadingSentenceCase, HeadingTitleCase, ImageAltText, ImageInTable, LinkClickHere, LongParagraph, MathAdjacent, MathAlignExtraBreak, MathAlignLinebreaks, MathEmpty,
|
|
1287
|
+
var AllRules = [AbsoluteUrl, BlockquotedMath, BlockquotedWidget, DoubleSpacingAfterTerminal, ExpressionWidget, ExtraContentSpacing, HeadingLevel1, HeadingLevelSkip, HeadingSentenceCase, HeadingTitleCase, ImageAltText, ImageInTable, LinkClickHere, LongParagraph, MathAdjacent, MathAlignExtraBreak, MathAlignLinebreaks, MathEmpty, MathFrac, MathNested, MathStartsWithSpace, MathTextEmpty, NestedLists, StaticWidgetInQuestionStem, TableMissingCells, UnescapedDollar, WidgetInTable, MathWithoutDollars, UnbalancedCodeDelimiters, ImageSpacesAroundUrls, ImageWidget];
|
|
1297
1288
|
|
|
1298
1289
|
/**
|
|
1299
1290
|
* TreeTransformer is a class for traversing and transforming trees. Create a
|
|
@@ -1834,7 +1825,7 @@ class Stack {
|
|
|
1834
1825
|
|
|
1835
1826
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
1836
1827
|
const libName = "@khanacademy/perseus-linter";
|
|
1837
|
-
const libVersion = "1.2.
|
|
1828
|
+
const libVersion = "1.2.18";
|
|
1838
1829
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
1839
1830
|
|
|
1840
1831
|
// Define the shape of the linter context object that is passed through the
|