mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
add \i and \j for text mode (#1029)
This commit is contained in:
committed by
Erik Demaine
parent
c30edaaf5b
commit
2b2cf73f2e
@@ -646,6 +646,8 @@ defineSymbol(math, main, accent, "\u20d7", "\\vec");
|
||||
defineSymbol(math, main, accent, "\u02d9", "\\dot");
|
||||
defineSymbol(math, main, mathord, "\u0131", "\\imath");
|
||||
defineSymbol(math, main, mathord, "\u0237", "\\jmath");
|
||||
defineSymbol(text, main, textord, "\u0131", "\\i");
|
||||
defineSymbol(text, main, textord, "\u0237", "\\j");
|
||||
defineSymbol(text, main, accent, "\u02ca", "\\'"); // acute
|
||||
defineSymbol(text, main, accent, "\u02cb", "\\`"); // grave
|
||||
defineSymbol(text, main, accent, "\u02c6", "\\^"); // circumflex
|
||||
|
@@ -2838,3 +2838,9 @@ describe("The \\mathchoice function", function() {
|
||||
expect(built).toEqual(plain);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Symbols", function() {
|
||||
it("should parse \\text{\\i\\j}", () => {
|
||||
expect("\\text{\\i\\j}").toParse();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user