@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/dist/index.js
CHANGED
|
@@ -9141,12 +9141,13 @@ var Tex$1 = {
|
|
|
9141
9141
|
// We use createElement instead of JSX here because we can't name this file tex.tsx;
|
|
9142
9142
|
// that name is already taken.
|
|
9143
9143
|
render( /*#__PURE__*/React__namespace.createElement(TeX, {
|
|
9144
|
-
children: text
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9144
|
+
children: text,
|
|
9145
|
+
onRender: () => {
|
|
9146
|
+
if (callback) {
|
|
9147
|
+
doCallback(elem, callback);
|
|
9148
|
+
}
|
|
9148
9149
|
}
|
|
9149
|
-
});
|
|
9150
|
+
}), $katexHolder[0]);
|
|
9150
9151
|
}
|
|
9151
9152
|
},
|
|
9152
9153
|
// Function to restore a node to a non-math-processed state
|