Allow \includegraphics to omit the optional argument (#1807)

* Allow \includegraphics to omit the optional argument

* Fix lint error
This commit is contained in:
Ron Kok
2018-12-23 15:52:30 -08:00
committed by Kevin Barabash
parent 45a58f8d30
commit d604965c62
2 changed files with 6 additions and 0 deletions

View File

@@ -2687,6 +2687,9 @@ describe("A raw text parser", function() {
// Unicode combining character. So this is a test that the parser will catch a bad string.
expect("\\includegraphics[\u030aheight=0.8em, totalheight=0.9em, width=0.9em]{" + "https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}").not.toParse();
});
it("should return null for a omitted optional string", function() {
expect("\\includegraphics{https://cdn.kastatic.org/images/apple-touch-icon-57x57-precomposed.new.png}").toParse();
});
});