Support mediawiki (#1558)

* Support mediawiki

* Fix lint error

* Fix link to deprecated syntax

* Change In master to display of functions
This commit is contained in:
Ron Kok
2018-08-07 15:49:38 -07:00
committed by ylemkimon
parent f3a9bd4b3d
commit 50c0240349
4 changed files with 161 additions and 72 deletions

View File

@@ -760,6 +760,20 @@ describe("A text parser", function() {
});
});
describe("A texvc builder", function() {
it("should not fail", function() {
expect("\\lang\\N\\darr\\R\\dArr\\Z\\Darr\\alef\\rang").toBuild();
expect("\\alefsym\\uarr\\Alpha\\uArr\\Beta\\Uarr\\Chi").toBuild();
expect("\\clubs\\diamonds\\hearts\\spades\\cnums\\Complex").toBuild();
expect("\\Dagger\\empty\\harr\\Epsilon\\hArr\\Eta\\Harr\\exist").toBuild();
expect("\\image\\larr\\infin\\lArr\\Iota\\Larr\\isin\\Kappa").toBuild();
expect("\\Mu\\lrarr\\natnums\\lrArr\\Nu\\Lrarr\\Omicron").toBuild();
expect("\\real\\rarr\\plusmn\\rArr\\reals\\Rarr\\Reals\\Rho").toBuild();
expect("\\text{\\sect}\\sdot\\sub\\sube\\supe").toBuild();
expect("\\Tau\\thetasym\\weierp\\Zeta").toBuild();
});
});
describe("A color parser", function() {
const colorExpression = r`\blue{x}`;
const newColorExpression = r`\redA{x}`;