@khanacademy/simple-markdown 0.11.3 → 0.12.0
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 +5 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -6
package/dist/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ 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.
|
|
5
|
+
const libVersion = "0.12.0";
|
|
6
6
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
7
7
|
|
|
8
8
|
/* eslint-disable prefer-spread, no-regex-spaces, @typescript-eslint/no-unused-vars, guard-for-in, no-console, no-var */
|
|
@@ -587,10 +587,12 @@ var defaultRules = {
|
|
|
587
587
|
match: blockRegex(/^( *[-*_]){3,} *(?:\n *)+\n/),
|
|
588
588
|
parse: ignoreCapture,
|
|
589
589
|
react: function (node, output, state) {
|
|
590
|
-
return reactElement("hr", state.key,
|
|
590
|
+
return reactElement("hr", state.key, {
|
|
591
|
+
"aria-hidden": true
|
|
592
|
+
});
|
|
591
593
|
},
|
|
592
594
|
html: function (node, output, state) {
|
|
593
|
-
return
|
|
595
|
+
return '<hr aria-hidden="true">';
|
|
594
596
|
}
|
|
595
597
|
},
|
|
596
598
|
codeBlock: {
|