Cover math scripts in longtable cells

This commit is contained in:
gloamxun committed 2026-10-20 00:04:11 +08:00
1 parent 9e3164adf6
commit 972b7635d2
1 file changed
+12
+12
View File
@@ -1752,3 +1752,15 @@ fn resizebox_strips_nested_math_delimiters() {
let value = fresh_preview(source, "resizebox-math.tex");
assert_eq!(value["status"], "ok");
}
#[test]
fn longtable_math_scripts_compile() {
let source = r"\documentclass{article}
\begin{document}
\begin{longtable}{ll}
$O_{ird}^m,q_{ird}^m$ & x \\
\end{longtable}
\end{document}";
let value = fresh_preview(source, "longtable-scripts.tex");
assert_eq!(value["status"], "ok");
}