mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 12:38:39 +00:00
Accept all existing Greek letters using unicode characters in math mode (#410)
Test Plan: - make test - run screenshot tests on travis-ci
This commit is contained in:
@@ -2332,3 +2332,13 @@ describe("A parser taking String objects", function() {
|
||||
expect(new String("\\frac 1 2")).toParseLike("\\frac 1 2");
|
||||
});
|
||||
});
|
||||
|
||||
describe("Unicode", function() {
|
||||
it("should parse all lower case Greek letters", function() {
|
||||
expect("αβγδεϵζηθϑικλμνξοπϖρϱςστυφϕχψω").toParse();
|
||||
});
|
||||
|
||||
it("should parse 'ΓΔΘΞΠΣΦΨΩ'", function() {
|
||||
expect("ΓΔΘΞΠΣΦΨΩ").toParse();
|
||||
});
|
||||
});
|
||||
|
BIN
test/screenshotter/images/GreekUnicode-chrome.png
Normal file
BIN
test/screenshotter/images/GreekUnicode-chrome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
test/screenshotter/images/GreekUnicode-firefox.png
Normal file
BIN
test/screenshotter/images/GreekUnicode-firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
@@ -91,6 +91,7 @@ Gathered: |
|
||||
y = \sum_{i=1}^n i
|
||||
\end{array}
|
||||
GreekLetters: \alpha\beta\gamma\omega
|
||||
GreekUnicode: \frac{αβγδεϵζηθϑικλμνξοπϖρϱςστυφϕχψω}{ΓΔΘΞΠΣΦΨΩ\mathbf{Ω}\mathbf{\Omega}}
|
||||
GroupMacros:
|
||||
macros:
|
||||
\startExp: e^\bgroup
|
||||
|
Reference in New Issue
Block a user