Cover eqref and math accent rendering

This commit is contained in:
gloamxun committed 2026-10-20 00:20:14 +08:00
1 parent e77181e997
commit 07a4dcdda1
1 file changed
+12
+12
View File
@@ -1825,3 +1825,15 @@ fn aligned_with_leading_space_and_big_brace_compiles() {
let value = fresh_preview(source, "aligned-big.tex");
assert_eq!(value["status"], "ok");
}
#[test]
fn eqref_and_math_accents_compile() {
let source = r#"\documentclass{article}
\begin{document}
\begin{equation}\label{eq:x} a=b \end{equation}
See \eqref{eq:x}. $\bar{x}+\vec{v}$.
\end{document}
"#;
let value = fresh_preview(source, "eqref-accents.tex");
assert_eq!(value["status"], "ok");
}