From b362fc0b3941926a7a752cab34af6e29570c669a Mon Sep 17 00:00:00 2001 From: Ron Kok Date: Sun, 13 Mar 2022 11:38:16 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20Apply=20operator=20spacing=20to=20Unicod?= =?UTF-8?q?e=20=E2=88=99=20=E2=88=98=20=E2=88=96=20(#3584)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Apply operator spacing to Unicode ∙ ∘ ∖ * Appease Semantic Versioning. * Fix website build issue * Tweak docs to space final bin correctly Co-authored-by: Erik Demaine --- docs/supported.md | 2 +- src/symbols.js | 6 +++--- test/katex-spec.js | 2 +- website/yarn.lock | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/supported.md b/docs/supported.md index 7d23366f..f97294e9 100644 --- a/docs/supported.md +++ b/docs/supported.md @@ -390,7 +390,7 @@ Direct Input: $∫ ∬ ∭ ∮ ∏ ∐ ∑ ⋀ ⋁ ⋂ ⋃ ⨀ ⨁ ⨂ ⨄ ⨆$ | $\Cap$ `\Cap`| $\doublecap$ `\doublecap`| $\oslash$ `\oslash`| $\wedge$ `\wedge` | | $\cap$ `\cap`| $\doublecup$ `\doublecup`| $\pm$ `\pm` or `\plusmn` | $\wr$ `\wr` | -Direct Input: $+ - / * ⋅ ± × ÷ ∓ ∔ ∧ ∨ ∩ ∪ ≀ ⊎ ⊓ ⊔ ⊕ ⊖ ⊗ ⊘ ⊙ ⊚ ⊛ ⊝ ◯$ +Direct Input: $+ - / * ⋅ ∘ ∙ ± × ÷ ∓ ∔ ∧ ∨ ∩ ∪ ≀ ⊎ ⊓ ⊔ ⊕ ⊖ ⊗ ⊘ ⊙ ⊚ ⊛ ⊝ ◯ ∖ {}$ ### Fractions and Binomials diff --git a/src/symbols.js b/src/symbols.js index ec3aa959..ae495801 100644 --- a/src/symbols.js +++ b/src/symbols.js @@ -171,7 +171,7 @@ defineSymbol(math, main, bin, "\u2293", "\\sqcap", true); defineSymbol(math, main, bin, "\u2217", "\\ast"); defineSymbol(math, main, bin, "\u2294", "\\sqcup", true); defineSymbol(math, main, bin, "\u25ef", "\\bigcirc", true); -defineSymbol(math, main, bin, "\u2219", "\\bullet"); +defineSymbol(math, main, bin, "\u2219", "\\bullet", true); defineSymbol(math, main, bin, "\u2021", "\\ddagger"); defineSymbol(math, main, bin, "\u2240", "\\wr", true); defineSymbol(math, main, bin, "\u2a3f", "\\amalg"); @@ -538,13 +538,13 @@ defineSymbol(math, main, bin, "\u2217", "*", true); defineSymbol(math, main, bin, "+", "+"); defineSymbol(math, main, bin, "\u2212", "-", true); defineSymbol(math, main, bin, "\u22c5", "\\cdot", true); -defineSymbol(math, main, bin, "\u2218", "\\circ"); +defineSymbol(math, main, bin, "\u2218", "\\circ", true); defineSymbol(math, main, bin, "\u00f7", "\\div", true); defineSymbol(math, main, bin, "\u00b1", "\\pm", true); defineSymbol(math, main, bin, "\u00d7", "\\times", true); defineSymbol(math, main, bin, "\u2229", "\\cap", true); defineSymbol(math, main, bin, "\u222a", "\\cup", true); -defineSymbol(math, main, bin, "\u2216", "\\setminus"); +defineSymbol(math, main, bin, "\u2216", "\\setminus", true); defineSymbol(math, main, bin, "\u2227", "\\land"); defineSymbol(math, main, bin, "\u2228", "\\lor"); defineSymbol(math, main, bin, "\u2227", "\\wedge", true); diff --git a/test/katex-spec.js b/test/katex-spec.js index 15cd8a29..6b69df82 100644 --- a/test/katex-spec.js +++ b/test/katex-spec.js @@ -3802,7 +3802,7 @@ describe("Unicode", function() { }); it("should build binary operators", function() { - expect("±×÷∓∔∧∨∩∪≀⊎⊓⊔⊕⊖⊗⊘⊙⊚⊛⊝◯⊞⊟⊠⊡⊺⊻⊼⋇⋉⋊⋋⋌⋎⋏⋒⋓⩞\u22C5").toBuild(strictSettings); + expect("±×÷∓∔∧∨∩∪≀⊎⊓⊔⊕⊖⊗⊘⊙⊚⊛⊝◯⊞⊟⊠⊡⊺⊻⊼⋇⋉⋊⋋⋌⋎⋏⋒⋓⩞\u22C5\u2218\u2216\u2219").toBuild(strictSettings); }); it("should build common ords", function() { diff --git a/website/yarn.lock b/website/yarn.lock index f642e4c5..0d282c53 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -2,7 +2,7 @@ # Manual changes might be lost - proceed with caution! __metadata: - version: 5 + version: 6 cacheKey: 8 "@babel/code-frame@npm:7.10.4":