mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 20:48:41 +00:00
Fix \fbox (#1550)
* Fix \fbox * Fix lint errors * Change negative space test from \fbox to \boxed
This commit is contained in:
@@ -2156,6 +2156,12 @@ describe("A boxed builder", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("An fbox parser, unlike a boxed parser,", function() {
|
||||
it("should fail when given math", function() {
|
||||
expect`\fbox{\frac a b}`.not.toParse();
|
||||
});
|
||||
});
|
||||
|
||||
describe("A colorbox parser", function() {
|
||||
it("should not fail, given a text argument", function() {
|
||||
expect`\colorbox{red}{a b}`.toParse();
|
||||
|
Reference in New Issue
Block a user