mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
Add support for \aa, \AA, \lq, \rq, \lbrack, \rbrack (#1069)
* Add support for \aa, \AA, \lq, \rq, \lbrack, \rbrack The lack of \aa and \AA was reported in #1066. Added these via simple macros, with supporting tests. Also add \lq, \rq, \lbrack, \rbrack as aliases for "`", "'", "[", "]" which were in the same area of latex.ltx. * removed duplicate comment
This commit is contained in:
committed by
Kevin Barabash
parent
0599e09a2d
commit
a32f82a8ea
@@ -2798,6 +2798,12 @@ describe("Unicode accents", function() {
|
||||
"\\'y\\\"y}");
|
||||
});
|
||||
|
||||
it("should support \\aa in text mode", function() {
|
||||
expect("\\text{\\aa\\AA}").toParseLike("\\text{\\r a\\r A}");
|
||||
expect("\\aa").toNotParse();
|
||||
expect("\\Aa").toNotParse();
|
||||
});
|
||||
|
||||
it("should parse combining characters", function() {
|
||||
expect("A\u0301C\u0301").toParseLike("Á\\acute C");
|
||||
expect("\\text{A\u0301C\u0301}").toParseLike("\\text{Á\\'C}");
|
||||
|
Reference in New Issue
Block a user