mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Support Unicode \ll and \lll (#1273)
* Support Unicode \ll and \lll Fixes #1272. Consistent with `unicode-math` * Rearranged test strings
This commit is contained in:
@@ -83,7 +83,7 @@ defineSymbol(math, main, rel, "\u2aaf", "\\preceq", true);
|
|||||||
defineSymbol(math, main, rel, "\u2ab0", "\\succeq", true);
|
defineSymbol(math, main, rel, "\u2ab0", "\\succeq", true);
|
||||||
defineSymbol(math, main, rel, "\u2243", "\\simeq", true);
|
defineSymbol(math, main, rel, "\u2243", "\\simeq", true);
|
||||||
defineSymbol(math, main, rel, "\u2223", "\\mid", true);
|
defineSymbol(math, main, rel, "\u2223", "\\mid", true);
|
||||||
defineSymbol(math, main, rel, "\u226a", "\\ll");
|
defineSymbol(math, main, rel, "\u226a", "\\ll", true);
|
||||||
defineSymbol(math, main, rel, "\u226b", "\\gg", true);
|
defineSymbol(math, main, rel, "\u226b", "\\gg", true);
|
||||||
defineSymbol(math, main, rel, "\u224d", "\\asymp", true);
|
defineSymbol(math, main, rel, "\u224d", "\\asymp", true);
|
||||||
defineSymbol(math, main, rel, "\u2225", "\\parallel");
|
defineSymbol(math, main, rel, "\u2225", "\\parallel");
|
||||||
@@ -303,7 +303,7 @@ defineSymbol(math, ams, rel, "\u2272", "\\lesssim");
|
|||||||
defineSymbol(math, ams, rel, "\u2a85", "\\lessapprox");
|
defineSymbol(math, ams, rel, "\u2a85", "\\lessapprox");
|
||||||
defineSymbol(math, ams, rel, "\u224a", "\\approxeq", true);
|
defineSymbol(math, ams, rel, "\u224a", "\\approxeq", true);
|
||||||
defineSymbol(math, ams, bin, "\u22d6", "\\lessdot");
|
defineSymbol(math, ams, bin, "\u22d6", "\\lessdot");
|
||||||
defineSymbol(math, ams, rel, "\u22d8", "\\lll");
|
defineSymbol(math, ams, rel, "\u22d8", "\\lll", true);
|
||||||
defineSymbol(math, ams, rel, "\u2276", "\\lessgtr");
|
defineSymbol(math, ams, rel, "\u2276", "\\lessgtr");
|
||||||
defineSymbol(math, ams, rel, "\u22da", "\\lesseqgtr");
|
defineSymbol(math, ams, rel, "\u22da", "\\lesseqgtr");
|
||||||
defineSymbol(math, ams, rel, "\u2a8b", "\\lesseqqgtr");
|
defineSymbol(math, ams, rel, "\u2a8b", "\\lesseqqgtr");
|
||||||
|
@@ -2976,7 +2976,7 @@ describe("Unicode", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should parse relations", function() {
|
it("should parse relations", function() {
|
||||||
expect("∈∋∝∼∽≂≃≅≈≊≍≎≏≐≑≒≓≖≗≜≡≤≥≦≧≫≬≳≷≺≻≼≽≾≿∴∵∣≔≕⩴").toParse();
|
expect("∈∋∝∼∽≂≃≅≈≊≍≎≏≐≑≒≓≖≗≜≡≤≥≦≧≪≫≬≳≷≺≻≼≽≾≿∴∵∣≔≕⩴⋘⋙").toParse();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should parse big operators", function() {
|
it("should parse big operators", function() {
|
||||||
@@ -2984,7 +2984,7 @@ describe("Unicode", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should parse more relations", function() {
|
it("should parse more relations", function() {
|
||||||
expect("⊂⊃⊆⊇⊏⊐⊑⊒⊢⊣⊩⊪⊸⋈⋍⋐⋑⋔⋙⋛⋞⋟⌢⌣⩾⪆⪌⪕⪖⪯⪰⪷⪸⫅⫆").toParse();
|
expect("⊂⊃⊆⊇⊏⊐⊑⊒⊢⊣⊩⊪⊸⋈⋍⋐⋑⋔⋛⋞⋟⌢⌣⩾⪆⪌⪕⪖⪯⪰⪷⪸⫅⫆").toParse();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should parse symbols", function() {
|
it("should parse symbols", function() {
|
||||||
|
Reference in New Issue
Block a user