mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Fix #4.
Post-process the list of atoms after they are created, changing binary operators to ordinary atoms according to the TeXbook's rules. This makes the `prev` argument redundant, so drop it. This commit assumes that the math class (mop/mbin/mrel/etc.) comes first in the `classes` list, if present. Add a TODO to change the signature of `makeSpan/makeSymbol` to enforce this invariant.
This commit is contained in:
@@ -26,6 +26,11 @@ Arrays: |
|
||||
ArrayType: 1\begin{array}{c}2\\3\end{array}4
|
||||
Baseline: a+b-c\cdot d/e
|
||||
BasicTest: a
|
||||
BinCancellation: |
|
||||
\begin{array}{ccc}
|
||||
+1 & 1+ & 1+1 \\
|
||||
1++1 & 3\times) & 1+,
|
||||
\end{array}
|
||||
BinomTest: \dbinom{a}{b}\tbinom{a}{b}^{\binom{a}{b}+17}
|
||||
BoldSpacing: \mathbf{A}^2+\mathbf{B}_3*\mathscr{C}'
|
||||
Cases: |
|
||||
|
Reference in New Issue
Block a user