mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Allow \includegraphics to omit the optional argument (#1807)
* Allow \includegraphics to omit the optional argument * Fix lint error
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user