@marimo-team/islands 0.20.3-dev97 → 0.20.3-dev98
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/main.js +4 -2
- package/package.json +1 -1
- package/src/plugins/layout/TexPlugin.tsx +4 -1
package/dist/main.js
CHANGED
|
@@ -70358,7 +70358,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
70358
70358
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
70359
70359
|
}
|
|
70360
70360
|
}
|
|
70361
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.20.3-
|
|
70361
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.20.3-dev98"), showCodeInRunModeAtom = atom(true);
|
|
70362
70362
|
atom(null);
|
|
70363
70363
|
var import_compiler_runtime$88 = require_compiler_runtime();
|
|
70364
70364
|
function useKeydownOnElement(e, r) {
|
|
@@ -95286,7 +95286,9 @@ ${c}
|
|
|
95286
95286
|
}
|
|
95287
95287
|
}, importKatex = once(async () => (await import("./katex-pyO_klYC.js")).default), importMhChem = once(async () => {
|
|
95288
95288
|
await import("./mhchem-DckvwtV8.js");
|
|
95289
|
-
}), macros = {
|
|
95289
|
+
}), macros = {
|
|
95290
|
+
"\\mbox": "\\text{#1}"
|
|
95291
|
+
};
|
|
95290
95292
|
async function renderLatex(e, r) {
|
|
95291
95293
|
let [c] = await Promise.all([
|
|
95292
95294
|
importKatex(),
|
package/package.json
CHANGED
|
@@ -39,7 +39,10 @@ const importMhChem = once(async () => {
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// Required, even if empty. (see https://github.com/KaTeX/KaTeX/issues/2513)
|
|
42
|
-
const macros = {
|
|
42
|
+
const macros = {
|
|
43
|
+
// KaTeX doesn't support \mbox; map it to the equivalent \text
|
|
44
|
+
"\\mbox": "\\text{#1}",
|
|
45
|
+
};
|
|
43
46
|
|
|
44
47
|
async function renderLatex(mount: HTMLElement, tex: string): Promise<void> {
|
|
45
48
|
const [katex] = await Promise.all([importKatex(), importMhChem()]);
|