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:
parent
fe346f56ca
commit
8c179252c5
|
@ -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(
|
||||
|
|
|
@ -423,6 +423,7 @@ var charLookup = {
|
|||
"\\cdot": "\u22c5",
|
||||
"\\circ": "\u2218",
|
||||
"\\colon": ":",
|
||||
"\\cong": "\u2245",
|
||||
"\\div": "\u00f7",
|
||||
"\\ge": "\u2265",
|
||||
"\\geq": "\u2265",
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user