mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 21:18:40 +00:00
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:
@@ -271,6 +271,7 @@ var copyFuncs = {
|
|||||||
"rel": [
|
"rel": [
|
||||||
"rel",
|
"rel",
|
||||||
"\\approx",
|
"\\approx",
|
||||||
|
"\\cong",
|
||||||
"\\ge",
|
"\\ge",
|
||||||
"\\geq",
|
"\\geq",
|
||||||
"\\gets",
|
"\\gets",
|
||||||
@@ -360,7 +361,7 @@ Parser.prototype.parseNucleus = function(pos) {
|
|||||||
"Expected group after '" + nucleus.text + "'");
|
"Expected group after '" + nucleus.text + "'");
|
||||||
}
|
}
|
||||||
} else if (utils.contains(sizeFuncs, nucleus.type)) {
|
} 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);
|
var group = this.parseGroup(nucleus.position);
|
||||||
if (group) {
|
if (group) {
|
||||||
return new ParseResult(
|
return new ParseResult(
|
||||||
|
@@ -423,6 +423,7 @@ var charLookup = {
|
|||||||
"\\cdot": "\u22c5",
|
"\\cdot": "\u22c5",
|
||||||
"\\circ": "\u2218",
|
"\\circ": "\u2218",
|
||||||
"\\colon": ":",
|
"\\colon": ":",
|
||||||
|
"\\cong": "\u2245",
|
||||||
"\\div": "\u00f7",
|
"\\div": "\u00f7",
|
||||||
"\\ge": "\u2265",
|
"\\ge": "\u2265",
|
||||||
"\\geq": "\u2265",
|
"\\geq": "\u2265",
|
||||||
|
@@ -63,7 +63,7 @@ describe("A bin parser", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("A rel 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() {
|
it("should not fail", function() {
|
||||||
expect(function() {
|
expect(function() {
|
||||||
|
Reference in New Issue
Block a user