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:
Ron Kok
2018-05-12 10:51:14 -07:00
committed by Erik Demaine
parent 929b9bf5e7
commit 74422e1462
6 changed files with 65 additions and 2 deletions

View File

@@ -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();
});