@marimo-team/frontend 0.19.5-dev4 → 0.19.5-dev7
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/index.html
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
|
|
67
67
|
<!-- /TODO -->
|
|
68
68
|
<title>{{ title }}</title>
|
|
69
|
-
<script type="module" crossorigin src="./assets/index-
|
|
69
|
+
<script type="module" crossorigin src="./assets/index-CbtaVo5m.js"></script>
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-BW0IMuFq.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="./assets/hotkeys-uKX61F1_.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="./assets/defaultLocale-BLUna9fQ.js">
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
<link rel="stylesheet" crossorigin href="./assets/cells-jmgGt1lS.css">
|
|
258
258
|
<link rel="stylesheet" crossorigin href="./assets/markdown-renderer-DdDKmWlR.css">
|
|
259
259
|
<link rel="stylesheet" crossorigin href="./assets/JsonOutput-B7vuddcd.css">
|
|
260
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
260
|
+
<link rel="stylesheet" crossorigin href="./assets/index-D7oNaQH0.css">
|
|
261
261
|
</head>
|
|
262
262
|
<body>
|
|
263
263
|
<div id="root"></div>
|
package/package.json
CHANGED
package/src/css/app/Cell.css
CHANGED
|
@@ -249,7 +249,6 @@
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
/* Borderless styles for Cell */
|
|
252
|
-
|
|
253
252
|
&.borderless {
|
|
254
253
|
border-color: transparent;
|
|
255
254
|
|
|
@@ -258,7 +257,6 @@
|
|
|
258
257
|
}
|
|
259
258
|
|
|
260
259
|
/* Apply the original styles */
|
|
261
|
-
&:hover,
|
|
262
260
|
&:focus {
|
|
263
261
|
border: 1px solid var(--gray-4);
|
|
264
262
|
}
|
|
@@ -115,16 +115,18 @@ const TexComponent = ({
|
|
|
115
115
|
// isn't a simple way to do that in Python without bringing in a new
|
|
116
116
|
// dependency.
|
|
117
117
|
//
|
|
118
|
-
//
|
|
119
|
-
//
|
|
120
|
-
//
|
|
118
|
+
// When nested, the inner marimo-tex should not render because the outer
|
|
119
|
+
// marimo-tex's textContent includes the nested delimiters (||(||(x||)||))
|
|
120
|
+
// and will render correctly with displayMode: true. We detect this by
|
|
121
|
+
// checking if the parent element is also a marimo-tex.
|
|
122
|
+
const isNested = host.parentElement?.tagName.toLowerCase() === "marimo-tex";
|
|
121
123
|
|
|
122
124
|
// Re-render when the text content changes.
|
|
123
125
|
useLayoutEffect(() => {
|
|
124
|
-
if (ref.current) {
|
|
126
|
+
if (ref.current && !isNested) {
|
|
125
127
|
renderLatex(ref.current, currentTex);
|
|
126
128
|
}
|
|
127
|
-
}, [currentTex]);
|
|
129
|
+
}, [currentTex, isNested]);
|
|
128
130
|
|
|
129
131
|
return <span ref={ref} />;
|
|
130
132
|
};
|