Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Fix: latex tag alignment (#1809)

Akshay Agrawal1ebc8e7fc53e
diff --git a/frontend/src/css/katex.min.css b/frontend/src/css/katex.min.css
index 45cf558d0d..5243249c30 100644
--- a/frontend/src/css/katex.min.css
+++ b/frontend/src/css/katex.min.css
@@ -1163,6 +1163,7 @@
.katex-display > .katex > .katex-html > .tag {
position: absolute;
right: 0;
+ text-align: right;
}
.katex-display.leqno > .katex > .katex-html > .tag {
diff --git a/marimo/_smoke_tests/bugs/1684.py b/marimo/_smoke_tests/bugs/1684.py
new file mode 100644
index 0000000000..a2c29d281d
--- /dev/null
+++ b/marimo/_smoke_tests/bugs/1684.py
@@ -0,0 +1,29 @@
+import marimo
+
+__generated_with = "0.7.5"
+app = marimo.App(width="medium")
+
+
+def __(mo):
+ mo.md(
+ r"""
+ $$
+ \begin{align*}
+ x &= 1 && \tag{Taylor} \\
+ x &= 1123123123123123 && \tag{Taylor's rule} \\
+ \end{align*}
+ $$
+ """
+ )
+ return
+
+
+def __():
+ import marimo as mo
+ return mo,
+
+
+if __name__ == "__main__":
+ app.run()