mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 14:08:42 +00:00
Support \pmb (#1418)
* Support \pmb * Fix lint error * Add phony screenshots * Screenshots take two * Screenshots take three * Simplify copies * Move determination of mclass from handler to htmlBuilder * Change to a macro definition * Update screenshots * Pick up review comments * Clean up nesting of braces * Update screenshot
This commit is contained in:
@@ -1535,6 +1535,17 @@ describe("A font parser", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("A \\pmb builder", function() {
|
||||
it("should not fail", function() {
|
||||
expect("\\pmb{\\mu}").toBuild();
|
||||
expect("\\pmb{=}").toBuild();
|
||||
expect("\\pmb{+}").toBuild();
|
||||
expect("\\pmb{\\frac{x^2}{x_1}}").toBuild();
|
||||
expect("\\pmb{}").toBuild();
|
||||
expect("\\def\\x{1}\\pmb{\\x\\def\\x{2}}").toParseLike("\\pmb{1}");
|
||||
});
|
||||
});
|
||||
|
||||
describe("A comment parser", function() {
|
||||
it("should parse comments at the end of a line", () => {
|
||||
expect("a^2 + b^2 = c^2 % Pythagoras' Theorem\n").toParse();
|
||||
|
Reference in New Issue
Block a user