diff --git a/docs/supported.md b/docs/supported.md index f119fe94..1e5ebf13 100644 --- a/docs/supported.md +++ b/docs/supported.md @@ -662,8 +662,8 @@ In cases where KaTeX fonts do not have a bold glyph, `\pmb` can simulate one. Fo |$\text{\textbraceleft}$ `\text{\textbraceleft}`|$\Diamond$ `\Diamond`|$\text{\textdegree}$ `\text{\textdegree}` |$\text{\textbraceright}$ `\text{\textbraceright}`|$\lozenge$ `\lozenge`|$\mho$ `\mho` |$\text{\textbackslash}$ `\text{\textbackslash}`|$\blacklozenge$ `\blacklozenge`|$\diagdown$ `\diagdown` -|$\text{\P}$ `\text{\P}`|$\star$ `\star`|$\diagup$ `\diagup` -|$\text{\S}$ `\text{\S}`|$\bigstar$ `\bigstar`|$\flat$ `\flat` +|$\text{\P}$ `\text{\P}` or `\P`|$\star$ `\star`|$\diagup$ `\diagup` +|$\text{\S}$ `\text{\S}` or `\S`|$\bigstar$ `\bigstar`|$\flat$ `\flat` |$\text{\sect}$ `\text{\sect}`|$\clubsuit$ `\clubsuit`|$\natural$ `\natural` |$\copyright$ `\copyright`|$\clubs$ `\clubs`|$\sharp$ `\sharp` |$\circledR$ `\circledR`|$\diamondsuit$ `\diamondsuit`|$\heartsuit$ `\heartsuit` @@ -671,7 +671,7 @@ In cases where KaTeX fonts do not have a bold glyph, `\pmb` can simulate one. Fo |$\circledS$ `\circledS`|$\spadesuit$ `\spadesuit`|$\spades$ `\spades` |$\text{\textcircled a}$ `\text{\textcircled a}`|$\maltese$ `\maltese`|$\minuso$ `\minuso`| -Direct Input: $£ ¥ ∇ ∞ · ∠ ∡ ∢ ♠ ♡ ♢ ♣ ♭ ♮ ♯ ✓ … ⋮ ⋯ ⋱ !$ ‼ ⦵ +Direct Input: § ¶ $ £ ¥ ∇ ∞ · ∠ ∡ ∢ ♠ ♡ ♢ ♣ ♭ ♮ ♯ ✓ … ⋮ ⋯ ⋱ !$ ‼ ⦵ ## Units diff --git a/src/symbols.js b/src/symbols.js index ee71a65e..6d2df4cb 100644 --- a/src/symbols.js +++ b/src/symbols.js @@ -144,8 +144,10 @@ defineSymbol(math, main, textord, "\u211c", "\\Re", true); defineSymbol(math, main, textord, "\u2661", "\\heartsuit", true); defineSymbol(math, main, textord, "\u2111", "\\Im", true); defineSymbol(math, main, textord, "\u2660", "\\spadesuit", true); -defineSymbol(text, main, textord, "\u00a7", "\\S", true); -defineSymbol(text, main, textord, "\u00b6", "\\P", true); +defineSymbol(math, main, textord, "\u00a7", "\\S", true); +defineSymbol(text, main, textord, "\u00a7", "\\S"); +defineSymbol(math, main, textord, "\u00b6", "\\P", true); +defineSymbol(text, main, textord, "\u00b6", "\\P"); // Math and Text defineSymbol(math, main, textord, "\u2020", "\\dag"); diff --git a/test/katex-spec.js b/test/katex-spec.js index 50ea7707..421e977f 100644 --- a/test/katex-spec.js +++ b/test/katex-spec.js @@ -3745,6 +3745,10 @@ describe("Unicode", function() { expect("±×÷∓∔∧∨∩∪≀⊎⊓⊔⊕⊖⊗⊘⊙⊚⊛⊝◯⊞⊟⊠⊡⊺⊻⊼⋇⋉⋊⋋⋌⋎⋏⋒⋓⩞\u22C5").toBuild(strictSettings); }); + it("should build common ords", function() { + expect("§¶£¥∇∞⋅∠∡∢♠♡♢♣♭♮♯✓…⋮⋯⋱! ‼ ⦵").toBuild(strictSettings); + }); + it("should build delimiters", function() { expect("\\left\u230A\\frac{a}{b}\\right\u230B").toBuild(); expect("\\left\u2308\\frac{a}{b}\\right\u2308").toBuild();