\text fails with \ref, \eqref
Created by: bdtc
Issue Summary
\text
fails with \ref
and \eqref
.
Technical details:
Latest MathJax 3, Firefox.
Supporting information:
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<script>
MathJax = {
loader: {
load: ['[tex]/tagformat', '[tex]/textmacros'],
},
tex: {
packages: {'[+]': ['tagformat', 'textmacros']},
tags: "ams",
}
}
</script>
<script
id="MathJax-script"
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
></script>
</head>
<body>
<h1>First section</h1>
<p>
\begin{equation}
y=mx+b \label {eq-thisequation}
\end{equation}
</p>
<h1>Text macros</h1>
<p>
eqref in math text: \(\text{\eqref {eq-thisequation}}\)
</p>
<p>
eqref in math: \(\eqref {eq-thisequation}\)
</p>
<p>
ref in math text: \(\text{\ref {eq-thisequation}}\)
</p>
<p>
ref in math: \(\ref {eq-thisequation}\)
</p>
</body>
</html>