mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Unicode punctuation works.
This commit is contained in:
@@ -652,3 +652,11 @@ for (i = 0x0410; i <= 0x044F; i++) {
|
||||
ch = String.fromCharCode(i);
|
||||
defineSymbol(text, main, textord, ch, ch);
|
||||
}
|
||||
|
||||
// Unicode versions of existing characters
|
||||
defineSymbol(text, main, textord, "\u2013", "–");
|
||||
defineSymbol(text, main, textord, "\u2014", "—");
|
||||
defineSymbol(text, main, textord, "\u2018", "‘");
|
||||
defineSymbol(text, main, textord, "\u2019", "’");
|
||||
defineSymbol(text, main, textord, "\u201c", "“");
|
||||
defineSymbol(text, main, textord, "\u201d", "”");
|
||||
|
Reference in New Issue
Block a user