mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
fix: Apply operator spacing to Unicode ∙ ∘ ∖ (#3584)
* Apply operator spacing to Unicode ∙ ∘ ∖ * Appease Semantic Versioning. * Fix website build issue * Tweak docs to space final bin correctly Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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() {
|
||||
|
@@ -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":
|
||||
|
Reference in New Issue
Block a user