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:
@@ -1356,6 +1356,10 @@ describe("A begin/end parser", function() {
|
||||
expect("\\begin{array}{cc}a&b\\\\c&d\\end{array}").toParse();
|
||||
});
|
||||
|
||||
it("should parse an environment with hlines", function() {
|
||||
expect("\\begin{matrix}\\hline a&b\\\\ \\hline c&d\\end{matrix}").toParse();
|
||||
});
|
||||
|
||||
it("should error when name is mismatched", function() {
|
||||
expect("\\begin{matrix}a&b\\\\c&d\\end{pmatrix}").toNotParse();
|
||||
});
|
||||
|
Reference in New Issue
Block a user