\text fails with ampersand
Created by: bdtc
Issue Summary
\text
fails with \&
.
The other special characters work.
Technical details:
Latex MathJax 3, Firefox.
Supporting information:
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<script>
MathJax = {
loader: {
load: ['[tex]/textmacros'],
},
tex: {
packages: {'[+]': ['textmacros']},
}
}
</script>
<script
id="MathJax-script"
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
></script>
</head>
<body>
<p>
dollar \(\text {before \$ after} \)
</p>
<p>
underscore \(\text {before \_ after} \)
</p>
<p>
percent \(\text {before \% after} \)
</p>
<p>
open brace \(\text {before \{ after} \)
</p>
<p>
close brace \(\text {before \} after} \)
</p>
<p>
literal space \(\text {before \ after} \)
</p>
<p>
ampersand \(\text {before & after} \)
</p>
<p>
hash \(\text {before \# after} \)
</p>
<p>
backslash \(\text {before \\ after} \)
</p>
</body>
</html>