Support for \' \` \^ \~ \= \u \. \" \r \H \v text-mode accents (#802)

* Support for \' \` \^ \~ \= \u \. \" \r \H \v text-mode accents

* bug fix

* Possible Safari fix

* Forbid text accents in math mode

* Switch to noncombining characters for most accents. Revert Safari change.

* Add tests

* Found non-combining diaresis accent too
This commit is contained in:
Erik Demaine
2017-08-23 03:18:33 -04:00
committed by Kevin Barabash
parent e88256b397
commit 201193233e
9 changed files with 64 additions and 4 deletions

View File

@@ -140,6 +140,11 @@ describe("Parser:", function() {
"Can't use function '\\sqrt' in text mode" +
" at position 7: \\text{\\̲s̲q̲r̲t̲2 is irrational…");
});
it("rejects text-mode-only functions in math mode", function() {
expect("\\'echec").toFailWithParseError(
"Can't use function '\\'' in math mode" +
" at position 1: \\̲'̲echec");
});
});
describe("#parseArguments", function() {