From 972b7635d2bcaf311f98ada93436c4b5f48a01f3 Mon Sep 17 00:00:00 2001 From: GloamXun Date: Tue, 20 Oct 2026 00:04:11 +0800 Subject: [PATCH] Cover math scripts in longtable cells --- tests/typeset.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/typeset.rs b/tests/typeset.rs index 7e84f1e..4fe7cde 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -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"); +}