aboutsummaryrefslogtreecommitdiff
path: root/test/command/refs.md
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-08-11 17:35:56 -0700
committerJohn MacFarlane <[email protected]>2025-08-11 17:40:41 -0700
commit0bbbdbcdb6282c7f63bdc9617455ec088fe7779b (patch)
tree0e1bd192bb2b687d1d205eab3898d6f27ae81135 /test/command/refs.md
parent6b2f66507a04b9071fdc2580488594f050ff4a83 (diff)
LaTeX reader/writer: change handling of math environments.
Certain environments in LaTeX will trigger math mode and can't occur within math mode: e.g., `align` or `equation`. Previously we "downshifted" these, parsing an `align` environment as a Math element with `aligned`, and an `equation` environment as a regular display math element. With this shift, we put these in Math inlines but retain the original environments. This works because: 1) texmath handles these environments just fine, 2) and so does MathJax; 3) when writing LaTeX we detect these environments in Math elements and emit them verbatim instead of putting them in `$..$` or `$$..$$`. Closes #9711. Closes #9296.
Diffstat (limited to 'test/command/refs.md')
-rw-r--r--test/command/refs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/command/refs.md b/test/command/refs.md
index f54f4fa8d..63daf81a7 100644
--- a/test/command/refs.md
+++ b/test/command/refs.md
@@ -118,7 +118,7 @@ Accuracy~\eqref{eq:Accuracy} is the proportion, measuring true results among all
, Para
[ Math
DisplayMath
- "\\label{eq:Accuracy}\n Accuracy = \\frac{t_p + t_n}{t_p + f_p + f_n + t_n}"
+ "\\begin{equation}\n \\label{eq:Accuracy}\n Accuracy = \\frac{t_p + t_n}{t_p + f_p + f_n + t_n}\n\\end{equation}"
]
]
```