From 07a4dcdda162e28fc287df03a80c28a225439158 Mon Sep 17 00:00:00 2001 From: GloamXun Date: Tue, 20 Oct 2026 00:20:14 +0800 Subject: [PATCH] Cover eqref and math accent rendering --- tests/typeset.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/typeset.rs b/tests/typeset.rs index 915db77..526507f 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -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"); +}