mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Support Unicode corners (#1459)
* Support Unicode corners * Fix \lrcorner
This commit is contained in:
@@ -320,6 +320,10 @@ defineMacro("\u225F", "\\stackrel{\\tiny?}{=}");
|
||||
defineMacro("\u27C2", "\\perp");
|
||||
defineMacro("\u203C", "\\mathclose{!\\mkern-0.8mu!}");
|
||||
defineMacro("\u220C", "\\notni");
|
||||
defineMacro("\u231C", "\\ulcorner");
|
||||
defineMacro("\u231D", "\\urcorner");
|
||||
defineMacro("\u231E", "\\llcorner");
|
||||
defineMacro("\u231F", "\\lrcorner");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// LaTeX_2ε
|
||||
|
@@ -3064,6 +3064,7 @@ describe("Unicode", function() {
|
||||
expect("\\left\u27e8\\frac{a}{b}\\right\u27e9").toBuild();
|
||||
expect("\\left\u23b0\\frac{a}{b}\\right\u23b1").toBuild();
|
||||
expect("┌x┐ └x┘").toBuild();
|
||||
expect("\u231Cx\u231D \u231Ex\u231F").toBuild();
|
||||
});
|
||||
|
||||
it("should build some surrogate pairs", function() {
|
||||
|
Reference in New Issue
Block a user