mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Support \hline (#1306)
* Support \hline Support `\hline`. * Fix CSS * Fix lint errors * Add double \hline. Code Cleanup * Reduce width of screenshot test * Add screenshots * Use consumeSpaces, read multiple \hlines * Code cleanup * Update screenshots
This commit is contained in:
@@ -124,6 +124,7 @@ GroupMacros:
|
||||
\startExp: e^\bgroup
|
||||
\endExp: \egroup
|
||||
tex: \startExp a+b\endExp
|
||||
Hline: \begin{array}{c|c}\hline \hline \hline a & b \\ \hline \hline \hline c & d \end{array} \quad \frac{\begin{pmatrix} a & b \\ \hline c & d \\ \hline \hline \hline\end{pmatrix}} 2 \quad \begin{bmatrix}\hline a & b \\ \hline c & d \\ \hline e & f \end{bmatrix}
|
||||
HorizontalBraces: \overbrace{\displaystyle{\oint_S{\vec E\cdot\hat n\,\mathrm d a}}}^\text{emf} = \underbrace{\frac{q_{\text{enc}}}{\varepsilon_0}}_{\text{charge}}
|
||||
KaTeX:
|
||||
tex: \KaTeX
|
||||
|
Reference in New Issue
Block a user