mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +00:00
Support Unicode colon equals (#1151)
* Support Unicode colon equals This PR adds support for three Unicode characters: `≔` `≕` `⩴` * Fix error in \Coloneqq
This commit is contained in:
@@ -397,6 +397,11 @@ defineMacro("\\colonsim", "\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim");
|
|||||||
// \providecommand*\Colonsim{\dblcolon\mathrel{\mkern-1.2mu}\sim}
|
// \providecommand*\Colonsim{\dblcolon\mathrel{\mkern-1.2mu}\sim}
|
||||||
defineMacro("\\Colonsim", "\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim");
|
defineMacro("\\Colonsim", "\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim");
|
||||||
|
|
||||||
|
// Some Unicode characters are implemented with macros to mathtools functions.
|
||||||
|
defineMacro("\u2254", "\\coloneqq"); // :=
|
||||||
|
defineMacro("\u2255", "\\eqqcolon"); // =:
|
||||||
|
defineMacro("\u2A74", "\\Coloneqq"); // ::=
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// colonequals.sty
|
// colonequals.sty
|
||||||
|
|
||||||
|
@@ -2915,7 +2915,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() {
|
||||||
|
Reference in New Issue
Block a user