mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 04:28:41 +00:00
Automatic mrel/mbin spacing for \boldsymbol (#1388)
* Automatic mrel/mbin spacing for \boldsymbol Fix #1154 * Add test * Add missing mode * Separate out \boldsymbol support to correct flow types * Fix ternaries thanks to @ronkok's comment * Revert package-lock.json * Add screenshot test
This commit is contained in:
@@ -1459,6 +1459,12 @@ describe("A font parser", function() {
|
||||
it("should have the correct greediness", function() {
|
||||
expect("e^\\mathbf{x}").toParse();
|
||||
});
|
||||
|
||||
it("\\boldsymbol should inherit mbin/mrel from argument", () => {
|
||||
const built = _getBuilt("a\\boldsymbol{}b\\boldsymbol{=}c" +
|
||||
"\\boldsymbol{+}d\\boldsymbol{++}e\\boldsymbol{xyz}f");
|
||||
expect(built).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
describe("A comment parser", function() {
|
||||
|
Reference in New Issue
Block a user