mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-14 07:18:39 +00:00
feat: Support \phase (#2406)
* Support \phase * Update screenshots * Update documentation * Add a11y test * Edit MathML notation to phasorangle * Move code to enclose.js Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
This commit is contained in:
@@ -2479,6 +2479,15 @@ describe("A actuarial angle builder", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("\\phase", function() {
|
||||
it("should fail in text mode", function() {
|
||||
expect`\text{\phase{-78.2^\circ}}`.not.toParse();
|
||||
});
|
||||
it("should not fail in math mode", function() {
|
||||
expect`\phase{-78.2^\circ}`.toBuild();
|
||||
});
|
||||
});
|
||||
|
||||
describe("A phantom parser", function() {
|
||||
it("should not fail", function() {
|
||||
expect`\phantom{x}`.toParse();
|
||||
|
Reference in New Issue
Block a user