mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Support Unicode ∴ and ∵ (#991)
* Support Unicode ∴ and ∵ * Add comments
This commit is contained in:
@@ -355,10 +355,14 @@ defineSymbol(math, ams, rel, "\u226c", "\\between", true);
|
||||
defineSymbol(math, ams, rel, "\u22d4", "\\pitchfork", true);
|
||||
defineSymbol(math, ams, rel, "\u221d", "\\varpropto");
|
||||
defineSymbol(math, ams, rel, "\u25c0", "\\blacktriangleleft");
|
||||
defineSymbol(math, ams, rel, "\u2234", "\\therefore");
|
||||
// unicode-math says that \therefore is a mathord atom.
|
||||
// We kept the amssymb atom type, which is rel.
|
||||
defineSymbol(math, ams, rel, "\u2234", "\\therefore", true);
|
||||
defineSymbol(math, ams, rel, "\u220d", "\\backepsilon");
|
||||
defineSymbol(math, ams, rel, "\u25b6", "\\blacktriangleright");
|
||||
defineSymbol(math, ams, rel, "\u2235", "\\because");
|
||||
// unicode-math says that \because is a mathord atom.
|
||||
// We kept the amssymb atom type, which is rel.
|
||||
defineSymbol(math, ams, rel, "\u2235", "\\because", true);
|
||||
defineSymbol(math, ams, rel, "\u22d8", "\\llless");
|
||||
defineSymbol(math, ams, rel, "\u22d9", "\\gggtr");
|
||||
defineSymbol(math, ams, bin, "\u22b2", "\\lhd");
|
||||
|
@@ -2694,7 +2694,7 @@ describe("Unicode", function() {
|
||||
});
|
||||
|
||||
it("should parse relations", function() {
|
||||
expect("∈∋∝∼∽≂≃≅≈≊≍≎≏≐≑≒≓≖≗≜≡≤≥≦≧≫≬≳≷≺≻≼≽≾≿").toParse();
|
||||
expect("∈∋∝∼∽≂≃≅≈≊≍≎≏≐≑≒≓≖≗≜≡≤≥≦≧≫≬≳≷≺≻≼≽≾≿∴∵").toParse();
|
||||
});
|
||||
|
||||
it("should parse big operators", function() {
|
||||
|
Reference in New Issue
Block a user