@khanacademy/perseus 6.4.1 → 6.4.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/CHANGELOG.md +17 -0
- package/dist/es/index.js +6 -5
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/util/tex.ts +8 -6
- package/tsconfig-build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "6.4.
|
|
6
|
+
"version": "6.4.3",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@khanacademy/kas": "^0.3.1",
|
|
25
25
|
"@khanacademy/kmath": "^0.1.1",
|
|
26
|
-
"@khanacademy/math-input": "^
|
|
26
|
+
"@khanacademy/math-input": "^6.0.1",
|
|
27
27
|
"@khanacademy/perseus-core": "0.0.1",
|
|
28
28
|
"@khanacademy/perseus-linter": "^0.3.1",
|
|
29
29
|
"@khanacademy/pure-markdown": "^0.2.3",
|
package/src/util/tex.ts
CHANGED
|
@@ -100,13 +100,15 @@ export default {
|
|
|
100
100
|
// We use createElement instead of JSX here because we can't name this file tex.tsx;
|
|
101
101
|
// that name is already taken.
|
|
102
102
|
reactRender(
|
|
103
|
-
React.createElement(TeX, {
|
|
103
|
+
React.createElement(TeX, {
|
|
104
|
+
children: text,
|
|
105
|
+
onRender: () => {
|
|
106
|
+
if (callback) {
|
|
107
|
+
doCallback(elem, callback);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
}),
|
|
104
111
|
$katexHolder[0],
|
|
105
|
-
() => {
|
|
106
|
-
if (callback) {
|
|
107
|
-
doCallback(elem, callback);
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
112
|
);
|
|
111
113
|
}
|
|
112
114
|
},
|