Added \cong + fixed comment copypasta.

Test Plan: Parses and renders locally.

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D6393
This commit is contained in:
Alex Lopatin 2014-01-28 16:13:51 -08:00
parent fe346f56ca
commit 8c179252c5
3 changed files with 4 additions and 2 deletions

View File

@ -271,6 +271,7 @@ var copyFuncs = {
"rel": [
"rel",
"\\approx",
"\\cong",
"\\ge",
"\\geq",
"\\gets",
@ -360,7 +361,7 @@ Parser.prototype.parseNucleus = function(pos) {
"Expected group after '" + nucleus.text + "'");
}
} else if (utils.contains(sizeFuncs, nucleus.type)) {
// If this is a color function, parse its argument and return
// If this is a size function, parse its argument and return
var group = this.parseGroup(nucleus.position);
if (group) {
return new ParseResult(

View File

@ -423,6 +423,7 @@ var charLookup = {
"\\cdot": "\u22c5",
"\\circ": "\u2218",
"\\colon": ":",
"\\cong": "\u2245",
"\\div": "\u00f7",
"\\ge": "\u2265",
"\\geq": "\u2265",

View File

@ -63,7 +63,7 @@ describe("A bin parser", function() {
});
describe("A rel parser", function() {
var expression = "=<>\\leq\\geq\\neq\\nleq\\ngeq";
var expression = "=<>\\leq\\geq\\neq\\nleq\\ngeq\\cong";
it("should not fail", function() {
expect(function() {