@khanacademy/simple-markdown 0.13.4 → 0.13.6
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 +7 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { addLibraryVersionToPerseusDebug } from '@khanacademy/perseus-core';
|
|
|
2
2
|
|
|
3
3
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
4
4
|
const libName = "@khanacademy/simple-markdown";
|
|
5
|
-
const libVersion = "0.13.
|
|
5
|
+
const libVersion = "0.13.6";
|
|
6
6
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
7
7
|
|
|
8
|
-
/* eslint-disable prefer-spread, no-regex-spaces,
|
|
8
|
+
/* eslint-disable prefer-spread, no-regex-spaces, guard-for-in, no-console, no-var */
|
|
9
9
|
|
|
10
10
|
// Type Definitions:
|
|
11
11
|
|
|
@@ -374,6 +374,9 @@ var LIST_R = new RegExp("^( *)(" + LIST_BULLET + ") " + "[\\s\\S]+?(?:\n{2,}(?!
|
|
|
374
374
|
"|\\s*\n*$)");
|
|
375
375
|
var LIST_LOOKBEHIND_R = /(?:^|\n)( *)$/;
|
|
376
376
|
var TABLES = function () {
|
|
377
|
+
// predefine regexes so we don't have to create them inside functions
|
|
378
|
+
// sure, regex literals should be fast, even inside functions, but they
|
|
379
|
+
// aren't in all browsers.
|
|
377
380
|
var TABLE_ROW_SEPARATOR_TRIM = /^ *\| *| *\| *$/g;
|
|
378
381
|
var TABLE_CELL_END_TRIM = / *$/;
|
|
379
382
|
var TABLE_RIGHT_ALIGN = /^ *-+: *$/;
|
|
@@ -1397,12 +1400,14 @@ var SimpleMarkdown = {
|
|
|
1397
1400
|
if (typeof console !== "undefined") {
|
|
1398
1401
|
console.warn("defaultParse is deprecated, please use `defaultImplicitParse`");
|
|
1399
1402
|
}
|
|
1403
|
+
// @ts-expect-error - Argument of type 'any[]' is not assignable to parameter of type '[node: ASTNode, state?: State | null | undefined]'. Target requires 1 element(s) but source may have fewer.
|
|
1400
1404
|
return defaultImplicitParse.apply(null, args);
|
|
1401
1405
|
},
|
|
1402
1406
|
defaultOutput: function (...args) {
|
|
1403
1407
|
if (typeof console !== "undefined") {
|
|
1404
1408
|
console.warn("defaultOutput is deprecated, please use `defaultReactOutput`");
|
|
1405
1409
|
}
|
|
1410
|
+
// @ts-expect-error - Argument of type 'any[]' is not assignable to parameter of type '[node: ASTNode, state?: State | null | undefined]'. Target requires 1 element(s) but source may have fewer.
|
|
1406
1411
|
return defaultReactOutput.apply(null, args);
|
|
1407
1412
|
}
|
|
1408
1413
|
};
|