π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
fix(editor): cursors in wrong possition in katex snippets
Smaug67392ba7f3f2125a
diff --git a/frontend/app/components/MarkdownEditor/katex-snippets.ts b/frontend/app/components/MarkdownEditor/katex-snippets.tsindex 4f403b27..2b947484 100644--- a/frontend/app/components/MarkdownEditor/katex-snippets.ts+++ b/frontend/app/components/MarkdownEditor/katex-snippets.ts@@ -1,305 +1,305 @@export const katexSnippets = [// ---------- Accents ----------- { id: '\\acute', label: '\\acute{${0}}' },- { id: '\\grave', label: '\\grave{${0}}' },- { id: '\\hat', label: '\\hat{${0}}' },- { id: '\\widehat', label: '\\widehat{${0}}' },- { id: '\\bar', label: '\\bar{${0}}' },- { id: '\\overline', label: '\\overline{${0}}' },- { id: '\\underline', label: '\\underline{${0}}' },- { id: '\\vec', label: '\\vec{${0}}' },- { id: '\\tilde', label: '\\tilde{${0}}' },- { id: '\\widetilde', label: '\\widetilde{${0}}' },- { id: '\\check', label: '\\check{${0}}' },- { id: '\\breve', label: '\\breve{${0}}' },- { id: '\\dot', label: '\\dot{${0}}' },- { id: '\\ddot', label: '\\ddot{${0}}' },- { id: '\\dddot', label: '\\dddot{${0}}' },- { id: '\\ddddot', label: '\\ddddot{${0}}' },- { id: '\\overbrace', label: '\\overbrace{${0}}^{${1}}' },- { id: '\\underbrace', label: '\\underbrace{${0}}_{${1}}' },- { id: '\\overleftarrow', label: '\\overleftarrow{${0}}' },- { id: '\\overrightarrow', label: '\\overrightarrow{${0}}' },- { id: '\\underleftarrow', label: '\\underleftarrow{${0}}' },- { id: '\\underrightarrow', label: '\\underrightarrow{${0}}' },- { id: '\\overleftrightarrow', label: '\\overleftrightarrow{${0}}' },- { id: '\\underleftrightarrow', label: '\\underleftrightarrow{${0}}' },- { id: '\\overgroup', label: '\\overgroup{${0}}' },- { id: '\\undergroup', label: '\\undergroup{${0}}' },- { id: '\\utilde', label: '\\utilde{${0}}' },- { id: '\\widecheck', label: '\\widecheck{${0}}' },- { id: '\\overlinesegment', label: '\\overlinesegment{${0}}' },- { id: '\\underlinesegment', label: '\\underlinesegment{${0}}' },- { id: '\\underbar', label: '\\underbar{${0}}' },+ { id: '\\acute', label: '\\acute{${1}}${0}' },+ { id: '\\grave', label: '\\grave{${1}}${0}' },+ { id: '\\hat', label: '\\hat{${1}}${0}' },+ { id: '\\widehat', label: '\\widehat{${1}}${0}' },+ { id: '\\bar', label: '\\bar{${1}}${0}' },+ { id: '\\overline', label: '\\overline{${1}}${0}' },+ { id: '\\underline', label: '\\underline{${1}}${0}' },+ { id: '\\vec', label: '\\vec{${1}}${0}' },+ { id: '\\tilde', label: '\\tilde{${1}}${0}' },+ { id: '\\widetilde', label: '\\widetilde{${1}}${0}' },+ { id: '\\check', label: '\\check{${1}}${0}' },+ { id: '\\breve', label: '\\breve{${1}}${0}' },+ { id: '\\dot', label: '\\dot{${1}}${0}' },+ { id: '\\ddot', label: '\\ddot{${1}}${0}' },+ { id: '\\dddot', label: '\\dddot{${1}}${0}' },+ { id: '\\ddddot', label: '\\ddddot{${1}}${0}' },+ { id: '\\overbrace', label: '\\overbrace{${1}}^{${2}}${0}' },+ { id: '\\underbrace', label: '\\underbrace{${1}}_{${2}}${0}' },+ { id: '\\overleftarrow', label: '\\overleftarrow{${1}}${0}' },+ { id: '\\overrightarrow', label: '\\overrightarrow{${1}}${0}' },+ { id: '\\underleftarrow', label: '\\underleftarrow{${1}}${0}' },+ { id: '\\underrightarrow', label: '\\underrightarrow{${1}}${0}' },+ { id: '\\overleftrightarrow', label: '\\overleftrightarrow{${1}}${0}' },+ { id: '\\underleftrightarrow', label: '\\underleftrightarrow{${1}}${0}' },+ { id: '\\overgroup', label: '\\overgroup{${1}}${0}' },+ { id: '\\undergroup', label: '\\undergroup{${1}}${0}' },+ { id: '\\utilde', label: '\\utilde{${1}}${0}' },+ { id: '\\widecheck', label: '\\widecheck{${1}}${0}' },+ { id: '\\overlinesegment', label: '\\overlinesegment{${1}}${0}' },+ { id: '\\underlinesegment', label: '\\underlinesegment{${1}}${0}' },+ { id: '\\underbar', label: '\\underbar{${1}}${0}' },// ---------- Delimiters ----------- { id: '\\lparen', label: '\\lparen' },- { id: '\\rparen', label: '\\rparen' },- { id: '\\lbrack', label: '\\lbrack' },- { id: '\\rbrack', label: '\\rbrack' },- { id: '\\lbrace', label: '\\lbrace' },- { id: '\\rbrace', label: '\\rbrace' },- { id: '\\langle', label: '\\langle' },- { id: '\\rangle', label: '\\rangle' },- { id: '\\lgroup', label: '\\lgroup' },- { id: '\\rgroup', label: '\\rgroup' },- { id: '\\ulcorner', label: '\\ulcorner' },- { id: '\\urcorner', label: '\\urcorner' },- { id: '\\llcorner', label: '\\llcorner' },- { id: '\\lrcorner', label: '\\lrcorner' },- { id: '\\vert', label: '\\vert' },- { id: '\\Vert', label: '\\Vert' },- { id: '\\backslash', label: '\\backslash' },- { id: '\\left', label: '\\left${0}' },- { id: '\\right', label: '\\right${0}' },- { id: '\\middle', label: '\\middle${0}' },- { id: '\\big', label: '\\big${0}' },- { id: '\\Big', label: '\\Big${0}' },- { id: '\\bigg', label: '\\bigg${0}' },- { id: '\\Bigg', label: '\\Bigg${0}' },- { id: '\\bigl', label: '\\bigl${0}' },- { id: '\\bigr', label: '\\bigr${0}' },- { id: '\\bigm', label: '\\bigm${0}' },- { id: '\\Bigl', label: '\\Bigl${0}' },- { id: '\\Bigr', label: '\\Bigr${0}' },- { id: '\\Bigm', label: '\\Bigm${0}' },- { id: '\\biggl', label: '\\biggl${0}' },- { id: '\\biggr', label: '\\biggr${0}' },- { id: '\\biggm', label: '\\biggm${0}' },- { id: '\\Biggl', label: '\\Biggl${0}' },- { id: '\\Biggr', label: '\\Biggr${0}' },- { id: '\\Biggm', label: '\\Biggm${0}' },+ { id: '\\lparen', label: '\\lparen${0}' },+ { id: '\\rparen', label: '\\rparen${0}' },+ { id: '\\lbrack', label: '\\lbrack${0}' },+ { id: '\\rbrack', label: '\\rbrack${0}' },+ { id: '\\lbrace', label: '\\lbrace${0}' },+ { id: '\\rbrace', label: '\\rbrace${0}' },+ { id: '\\langle', label: '\\langle${0}' },+ { id: '\\rangle', label: '\\rangle${0}' },+ { id: '\\lgroup', label: '\\lgroup${0}' },+ { id: '\\rgroup', label: '\\rgroup${0}' },+ { id: '\\ulcorner', label: '\\ulcorner${0}' },+ { id: '\\urcorner', label: '\\urcorner${0}' },+ { id: '\\llcorner', label: '\\llcorner${0}' },+ { id: '\\lrcorner', label: '\\lrcorner${0}' },+ { id: '\\vert', label: '\\vert${0}' },+ { id: '\\Vert', label: '\\Vert${0}' },+ { id: '\\backslash', label: '\\backslash${0}' },+ { id: '\\left', label: '\\left${1}${0}' },+ { id: '\\right', label: '\\right${1}${0}' },+ { id: '\\middle', label: '\\middle${1}${0}' },+ { id: '\\big', label: '\\big${1}${0}' },+ { id: '\\Big', label: '\\Big${1}${0}' },+ { id: '\\bigg', label: '\\bigg${1}${0}' },+ { id: '\\Bigg', label: '\\Bigg${1}${0}' },+ { id: '\\bigl', label: '\\bigl${1}${0}' },+ { id: '\\bigr', label: '\\bigr${1}${0}' },+ { id: '\\bigm', label: '\\bigm${1}${0}' },+ { id: '\\Bigl', label: '\\Bigl${1}${0}' },+ { id: '\\Bigr', label: '\\Bigr${1}${0}' },+ { id: '\\Bigm', label: '\\Bigm${1}${0}' },+ { id: '\\biggl', label: '\\biggl${1}${0}' },+ { id: '\\biggr', label: '\\biggr${1}${0}' },+ { id: '\\biggm', label: '\\biggm${1}${0}' },+ { id: '\\Biggl', label: '\\Biggl${1}${0}' },+ { id: '\\Biggr', label: '\\Biggr${1}${0}' },+ { id: '\\Biggm', label: '\\Biggm${1}${0}' },// ---------- Environments (snippets) ----------- { id: '\\matrix', label: '\\begin{matrix}${0}\\\\${1}\\end{matrix}' },- { id: '\\pmatrix', label: '\\begin{pmatrix}${0}\\\\${1}\\end{pmatrix}' },- { id: '\\bmatrix', label: '\\begin{bmatrix}${0}\\\\${1}\\end{bmatrix}' },- { id: '\\vmatrix', label: '\\begin{vmatrix}${0}\\\\${1}\\end{vmatrix}' },- { id: '\\Vmatrix', label: '\\begin{Vmatrix}${0}\\\\${1}\\end{Vmatrix}' },- { id: '\\Bmatrix', label: '\\begin{Bmatrix}${0}\\\\${1}\\end{Bmatrix}' },- { id: '\\smallmatrix', label: '\\begin{smallmatrix}${0}\\\\${1}\\end{smallmatrix}' },- { id: '\\array', label: '\\begin{array}{${0}}${1}\\end{array}' },- { id: '\\cases', label: '\\begin{cases}${0}\\end{cases}' },- { id: '\\rcases', label: '\\begin{rcases}${0}\\end{rcases}' },- { id: '\\darray', label: '\\begin{darray}${0}\\end{darray}' },- { id: '\\dcases', label: '\\begin{dcases}${0}\\end{dcases}' },- { id: '\\drcases', label: '\\begin{drcases}${0}\\end{drcases}' },- { id: '\\equation', label: '\\begin{equation}${0}\\end{equation}' },- { id: '\\equation*', label: '\\begin{equation*}${0}\\end{equation*}' },- { id: '\\split', label: '\\begin{split}${0}\\end{split}' },- { id: '\\align', label: '\\begin{align}${0}\\end{align}' },- { id: '\\align*', label: '\\begin{align*}${0}\\end{align*}' },- { id: '\\gather', label: '\\begin{gather}${0}\\end{gather}' },- { id: '\\gather*', label: '\\begin{gather*}${0}\\end{gather*}' },- { id: '\\alignat', label: '\\begin{alignat}{${0}}${1}\\end{alignat}' },- { id: '\\alignat*', label: '\\begin{alignat*}{${0}}${1}\\end{alignat*}' },- { id: '\\gathered', label: '\\begin{gathered}${0}\\end{gathered}' },- { id: '\\aligned', label: '\\begin{aligned}${0}\\end{aligned}' },- { id: '\\alignedat', label: '\\begin{alignedat}{${0}}${1}\\end{alignedat}' },- { id: '\\CD', label: '\\begin{CD}${0}\\end{CD}' },+ { id: '\\matrix', label: '\\begin{matrix}${1}\\\\${2}\\end{matrix}${0}' },+ { id: '\\pmatrix', label: '\\begin{pmatrix}${1}\\\\${2}\\end{pmatrix}${0}' },+ { id: '\\bmatrix', label: '\\begin{bmatrix}${1}\\\\${2}\\end{bmatrix}${0}' },+ { id: '\\vmatrix', label: '\\begin{vmatrix}${1}\\\\${2}\\end{vmatrix}${0}' },+ { id: '\\Vmatrix', label: '\\begin{Vmatrix}${1}\\\\${2}\\end{Vmatrix}${0}' },+ { id: '\\Bmatrix', label: '\\begin{Bmatrix}${1}\\\\${2}\\end{Bmatrix}${0}' },+ { id: '\\smallmatrix', label: '\\begin{smallmatrix}${1}\\\\${2}\\end{smallmatrix}${0}' },+ { id: '\\array', label: '\\begin{array}{${1}}${2}\\end{array}${0}' },+ { id: '\\cases', label: '\\begin{cases}${1}\\end{cases}${0}' },+ { id: '\\rcases', label: '\\begin{rcases}${1}\\end{rcases}${0}' },+ { id: '\\darray', label: '\\begin{darray}${1}\\end{darray}${0}' },+ { id: '\\dcases', label: '\\begin{dcases}${1}\\end{dcases}${0}' },+ { id: '\\drcases', label: '\\begin{drcases}${1}\\end{drcases}${0}' },+ { id: '\\equation', label: '\\begin{equation}${1}\\end{equation}${0}' },+ { id: '\\equation*', label: '\\begin{equation*}${1}\\end{equation*}${0}' },+ { id: '\\split', label: '\\begin{split}${1}\\end{split}${0}' },+ { id: '\\align', label: '\\begin{align}${1}\\end{align}${0}' },+ { id: '\\align*', label: '\\begin{align*}${1}\\end{align*}${0}' },+ { id: '\\gather', label: '\\begin{gather}${1}\\end{gather}${0}' },+ { id: '\\gather*', label: '\\begin{gather*}${1}\\end{gather*}${0}' },+ { id: '\\alignat', label: '\\begin{alignat}{${1}}${2}\\end{alignat}${0}' },+ { id: '\\alignat*', label: '\\begin{alignat*}{${1}}${2}\\end{alignat*}${0}' },+ { id: '\\gathered', label: '\\begin{gathered}${1}\\end{gathered}${0}' },+ { id: '\\aligned', label: '\\begin{aligned}${1}\\end{aligned}${0}' },+ { id: '\\alignedat', label: '\\begin{alignedat}{${1}}${2}\\end{alignedat}${0}' },+ { id: '\\CD', label: '\\begin{CD}${1}\\end{CD}${0}' },// ---------- Basic structures ----------- { id: '\\frac', label: '\\frac{${0}}{${1}}' },- { id: '\\dfrac', label: '\\dfrac{${0}}{${1}}' },- { id: '\\tfrac', label: '\\tfrac{${0}}{${1}}' },- { id: '\\binom', label: '\\binom{${0}}{${1}}' },- { id: '\\sqrt', label: '\\sqrt{${0}}' },- { id: '\\sqrtn', label: '\\sqrt[${0}]{${1}}' },- { id: '\\boxed', label: '\\boxed{${0}}' },- { id: '\\cancel', label: '\\cancel{${0}}' },- { id: '\\bcancel', label: '\\bcancel{${0}}' },- { id: '\\xcancel', label: '\\xcancel{${0}}' },- { id: '\\sout', label: '\\sout{${0}}' },+ { id: '\\frac', label: '\\frac{${1}}{${2}}${0}' },+ { id: '\\dfrac', label: '\\dfrac{${1}}{${2}}${0}' },+ { id: '\\tfrac', label: '\\tfrac{${1}}{${2}}${0}' },+ { id: '\\binom', label: '\\binom{${1}}{${2}}${0}' },+ { id: '\\sqrt', label: '\\sqrt{${1}}${0}' },+ { id: '\\sqrtn', label: '\\sqrt[${1}]{${2}}${0}' },+ { id: '\\boxed', label: '\\boxed{${1}}${0}' },+ { id: '\\cancel', label: '\\cancel{${1}}${0}' },+ { id: '\\bcancel', label: '\\bcancel{${1}}${0}' },+ { id: '\\xcancel', label: '\\xcancel{${1}}${0}' },+ { id: '\\sout', label: '\\sout{${1}}${0}' },// ---------- Arrows ----------- { id: '\\to', label: '\\to' },- { id: '\\rightarrow', label: '\\rightarrow' },- { id: '\\leftarrow', label: '\\leftarrow' },- { id: '\\leftrightarrow', label: '\\leftrightarrow' },- { id: '\\Rightarrow', label: '\\Rightarrow' },- { id: '\\Leftarrow', label: '\\Leftarrow' },- { id: '\\Leftrightarrow', label: '\\Leftrightarrow' },- { id: '\\mapsto', label: '\\mapsto' },- { id: '\\longrightarrow', label: '\\longrightarrow' },- { id: '\\longleftarrow', label: '\\longleftarrow' },- { id: '\\longleftrightarrow', label: '\\longleftrightarrow' },- { id: '\\uparrow', label: '\\uparrow' },- { id: '\\downarrow', label: '\\downarrow' },- { id: '\\updownarrow', label: '\\updownarrow' },- { id: '\\Uparrow', label: '\\Uparrow' },- { id: '\\Downarrow', label: '\\Downarrow' },- { id: '\\Updownarrow', label: '\\Updownarrow' },+ { id: '\\to', label: '\\to${0}' },+ { id: '\\rightarrow', label: '\\rightarrow${0}' },+ { id: '\\leftarrow', label: '\\leftarrow${0}' },+ { id: '\\leftrightarrow', label: '\\leftrightarrow${0}' },+ { id: '\\Rightarrow', label: '\\Rightarrow${0}' },+ { id: '\\Leftarrow', label: '\\Leftarrow${0}' },+ { id: '\\Leftrightarrow', label: '\\Leftrightarrow${0}' },+ { id: '\\mapsto', label: '\\mapsto${0}' },+ { id: '\\longrightarrow', label: '\\longrightarrow${0}' },+ { id: '\\longleftarrow', label: '\\longleftarrow${0}' },+ { id: '\\longleftrightarrow', label: '\\longleftrightarrow${0}' },+ { id: '\\uparrow', label: '\\uparrow${0}' },+ { id: '\\downarrow', label: '\\downarrow${0}' },+ { id: '\\updownarrow', label: '\\updownarrow${0}' },+ { id: '\\Uparrow', label: '\\Uparrow${0}' },+ { id: '\\Downarrow', label: '\\Downarrow${0}' },+ { id: '\\Updownarrow', label: '\\Updownarrow${0}' },// ---------- Relations & operators ----------- { id: '\\cdot', label: '\\cdot' },- { id: '\\times', label: '\\times' },- { id: '\\div', label: '\\div' },- { id: '\\pm', label: '\\pm' },- { id: '\\mp', label: '\\mp' },- { id: '\\leq', label: '\\leq' },- { id: '\\geq', label: '\\geq' },- { id: '\\neq', label: '\\neq' },- { id: '\\approx', label: '\\approx' },- { id: '\\sim', label: '\\sim' },- { id: '\\propto', label: '\\propto' },- { id: '\\equiv', label: '\\equiv' },- { id: '\\subset', label: '\\subset' },- { id: '\\supset', label: '\\supset' },- { id: '\\subseteq', label: '\\subseteq' },- { id: '\\supseteq', label: '\\supseteq' },- { id: '\\in', label: '\\in' },- { id: '\\notin', label: '\\notin' },- { id: '\\ni', label: '\\ni' },- { id: '\\mid', label: '\\mid' },- { id: '\\land', label: '\\land' },- { id: '\\lor', label: '\\lor' },- { id: '\\forall', label: '\\forall' },- { id: '\\exists', label: '\\exists' },- { id: '\\nexists', label: '\\nexists' },- { id: '\\therefore', label: '\\therefore' },- { id: '\\because', label: '\\because' },- { id: '\\implies', label: '\\implies' },- { id: '\\impliedby', label: '\\impliedby' },- { id: '\\iff', label: '\\iff' },+ { id: '\\cdot', label: '\\cdot${0}' },+ { id: '\\times', label: '\\times${0}' },+ { id: '\\div', label: '\\div${0}' },+ { id: '\\pm', label: '\\pm${0}' },+ { id: '\\mp', label: '\\mp${0}' },+ { id: '\\leq', label: '\\leq${0}' },+ { id: '\\geq', label: '\\geq${0}' },+ { id: '\\neq', label: '\\neq${0}' },+ { id: '\\approx', label: '\\approx${0}' },+ { id: '\\sim', label: '\\sim${0}' },+ { id: '\\propto', label: '\\propto${0}' },+ { id: '\\equiv', label: '\\equiv${0}' },+ { id: '\\subset', label: '\\subset${0}' },+ { id: '\\supset', label: '\\supset${0}' },+ { id: '\\subseteq', label: '\\subseteq${0}' },+ { id: '\\supseteq', label: '\\supseteq${0}' },+ { id: '\\in', label: '\\in${0}' },+ { id: '\\notin', label: '\\notin${0}' },+ { id: '\\ni', label: '\\ni${0}' },+ { id: '\\mid', label: '\\mid${0}' },+ { id: '\\land', label: '\\land${0}' },+ { id: '\\lor', label: '\\lor${0}' },+ { id: '\\forall', label: '\\forall${0}' },+ { id: '\\exists', label: '\\exists${0}' },+ { id: '\\nexists', label: '\\nexists${0}' },+ { id: '\\therefore', label: '\\therefore${0}' },+ { id: '\\because', label: '\\because${0}' },+ { id: '\\implies', label: '\\implies${0}' },+ { id: '\\impliedby', label: '\\impliedby${0}' },+ { id: '\\iff', label: '\\iff${0}' },// ---------- Spacing ----------- { id: '\\thinspace', label: '\\thinspace' },- { id: '\\medspace', label: '\\medspace' },- { id: '\\thickspace', label: '\\thickspace' },- { id: '\\enspace', label: '\\enspace' },- { id: '\\quad', label: '\\quad' },- { id: '\\qquad', label: '\\qquad' },- { id: '\\negthinspace', label: '\\negthinspace' },- { id: '\\negmedspace', label: '\\negmedspace' },- { id: '\\negthickspace', label: '\\negthickspace' },- { id: '\\kern', label: '\\kern${0}' },- { id: '\\mkern', label: '\\mkern${0}' },- { id: '\\hspace', label: '\\hspace{${0}}' },- { id: '\\hphantom', label: '\\hphantom{${0}}' },- { id: '\\vphantom', label: '\\vphantom{${0}}' },- { id: '\\phantom', label: '\\phantom{${0}}' },+ { id: '\\thinspace', label: '\\thinspace${0}' },+ { id: '\\medspace', label: '\\medspace${0}' },+ { id: '\\thickspace', label: '\\thickspace${0}' },+ { id: '\\enspace', label: '\\enspace${0}' },+ { id: '\\quad', label: '\\quad${0}' },+ { id: '\\qquad', label: '\\qquad${0}' },+ { id: '\\negthinspace', label: '\\negthinspace${0}' },+ { id: '\\negmedspace', label: '\\negmedspace${0}' },+ { id: '\\negthickspace', label: '\\negthickspace${0}' },+ { id: '\\kern', label: '\\kern${1}${0}' },+ { id: '\\mkern', label: '\\mkern${1}${0}' },+ { id: '\\hspace', label: '\\hspace{${1}}${0}' },+ { id: '\\hphantom', label: '\\hphantom{${1}}${0}' },+ { id: '\\vphantom', label: '\\vphantom{${1}}${0}' },+ { id: '\\phantom', label: '\\phantom{${1}}${0}' },// ---------- Layout ----------- { id: '\\stackrel', label: '\\stackrel{${0}}{${1}}' },- { id: '\\overset', label: '\\overset{${0}}{${1}}' },- { id: '\\underset', label: '\\underset{${0}}{${1}}' },- { id: '\\atop', label: '${0} \\atop ${1}' },- { id: '\\raisebox', label: '\\raisebox{${0}}{${1}}' },- { id: '\\vcenter', label: '\\vcenter{${0}}' },- { id: '\\smash', label: '\\smash{${0}}' },- { id: '\\mathllap', label: '\\mathllap{${0}}' },- { id: '\\mathrlap', label: '\\mathrlap{${0}}' },- { id: '\\mathclap', label: '\\mathclap{${0}}' },+ { id: '\\stackrel', label: '\\stackrel{${1}}{${2}}${0}' },+ { id: '\\overset', label: '\\overset{${1}}{${2}}${0}' },+ { id: '\\underset', label: '\\underset{${1}}{${2}}${0}' },+ { id: '\\atop', label: '${1} \\atop ${2}${0}' },+ { id: '\\raisebox', label: '\\raisebox{${1}}{${2}}${0}' },+ { id: '\\vcenter', label: '\\vcenter{${1}}${0}' },+ { id: '\\smash', label: '\\smash{${1}}${0}' },+ { id: '\\mathllap', label: '\\mathllap{${1}}${0}' },+ { id: '\\mathrlap', label: '\\mathrlap{${1}}${0}' },+ { id: '\\mathclap', label: '\\mathclap{${1}}${0}' },// ---------- Tags ----------- { id: '\\tag', label: '\\tag{${0}} ${1}' },- { id: '\\tag*', label: '\\tag*{${0}} ${1}' },+ { id: '\\tag', label: '\\tag{${1}} ${2}${0}' },+ { id: '\\tag*', label: '\\tag*{${1}} ${2}${0}' },// ---------- HTML (trust option required) ----------- { id: '\\href', label: '\\href{${0}}{${1}}' },- { id: '\\url', label: '\\url{${0}}' },- { id: '\\includegraphics', label: '\\includegraphics[height=${0}]{${1}}' },- { id: '\\htmlId', label: '\\htmlId{${0}}{${1}}' },- { id: '\\htmlClass', label: '\\htmlClass{${0}}{${1}}' },- { id: '\\htmlStyle', label: '\\htmlStyle{${0}}{${1}}' },- { id: '\\htmlData', label: '\\htmlData{${0}}{${1}}' },+ { id: '\\href', label: '\\href{${1}}{${2}}${0}' },+ { id: '\\url', label: '\\url{${1}}${0}' },+ { id: '\\includegraphics', label: '\\includegraphics[height=${1}]{${2}}${0}' },+ { id: '\\htmlId', label: '\\htmlId{${1}}{${2}}${0}' },+ { id: '\\htmlClass', label: '\\htmlClass{${1}}{${2}}${0}' },+ { id: '\\htmlStyle', label: '\\htmlStyle{${1}}{${2}}${0}' },+ { id: '\\htmlData', label: '\\htmlData{${1}}{${2}}${0}' },// ---------- Greek letters (lowercase) ----------- { id: '\\alpha', label: '\\alpha' },- { id: '\\beta', label: '\\beta' },- { id: '\\gamma', label: '\\gamma' },- { id: '\\delta', label: '\\delta' },- { id: '\\epsilon', label: '\\epsilon' },- { id: '\\zeta', label: '\\zeta' },- { id: '\\eta', label: '\\eta' },- { id: '\\theta', label: '\\theta' },- { id: '\\iota', label: '\\iota' },- { id: '\\kappa', label: '\\kappa' },- { id: '\\lambda', label: '\\lambda' },- { id: '\\mu', label: '\\mu' },- { id: '\\nu', label: '\\nu' },- { id: '\\xi', label: '\\xi' },- { id: '\\omicron', label: '\\omicron' },- { id: '\\pi', label: '\\pi' },- { id: '\\rho', label: '\\rho' },- { id: '\\sigma', label: '\\sigma' },- { id: '\\tau', label: '\\tau' },- { id: '\\upsilon', label: '\\upsilon' },- { id: '\\phi', label: '\\phi' },- { id: '\\chi', label: '\\chi' },- { id: '\\psi', label: '\\psi' },- { id: '\\omega', label: '\\omega' },- { id: '\\varepsilon', label: '\\varepsilon' },- { id: '\\varkappa', label: '\\varkappa' },- { id: '\\vartheta', label: '\\vartheta' },- { id: '\\thetasym', label: '\\thetasym' },- { id: '\\varpi', label: '\\varpi' },- { id: '\\varrho', label: '\\varrho' },- { id: '\\varsigma', label: '\\varsigma' },- { id: '\\varphi', label: '\\varphi' },+ { id: '\\alpha', label: '\\alpha${0}' },+ { id: '\\beta', label: '\\beta${0}' },+ { id: '\\gamma', label: '\\gamma${0}' },+ { id: '\\delta', label: '\\delta${0}' },+ { id: '\\epsilon', label: '\\epsilon${0}' },+ { id: '\\zeta', label: '\\zeta${0}' },+ { id: '\\eta', label: '\\eta${0}' },+ { id: '\\theta', label: '\\theta${0}' },+ { id: '\\iota', label: '\\iota${0}' },+ { id: '\\kappa', label: '\\kappa${0}' },+ { id: '\\lambda', label: '\\lambda${0}' },+ { id: '\\mu', label: '\\mu${0}' },+ { id: '\\nu', label: '\\nu${0}' },+ { id: '\\xi', label: '\\xi${0}' },+ { id: '\\omicron', label: '\\omicron${0}' },+ { id: '\\pi', label: '\\pi${0}' },+ { id: '\\rho', label: '\\rho${0}' },+ { id: '\\sigma', label: '\\sigma${0}' },+ { id: '\\tau', label: '\\tau${0}' },+ { id: '\\upsilon', label: '\\upsilon${0}' },+ { id: '\\phi', label: '\\phi${0}' },+ { id: '\\chi', label: '\\chi${0}' },+ { id: '\\psi', label: '\\psi${0}' },+ { id: '\\omega', label: '\\omega${0}' },+ { id: '\\varepsilon', label: '\\varepsilon${0}' },+ { id: '\\varkappa', label: '\\varkappa${0}' },+ { id: '\\vartheta', label: '\\vartheta${0}' },+ { id: '\\thetasym', label: '\\thetasym${0}' },+ { id: '\\varpi', label: '\\varpi${0}' },+ { id: '\\varrho', label: '\\varrho${0}' },+ { id: '\\varsigma', label: '\\varsigma${0}' },+ { id: '\\varphi', label: '\\varphi${0}' },// ---------- Greek letters (uppercase) ----------- { id: '\\Gamma', label: '\\Gamma' },- { id: '\\Delta', label: '\\Delta' },- { id: '\\Theta', label: '\\Theta' },- { id: '\\Lambda', label: '\\Lambda' },- { id: '\\Xi', label: '\\Xi' },- { id: '\\Pi', label: '\\Pi' },- { id: '\\Sigma', label: '\\Sigma' },- { id: '\\Upsilon', label: '\\Upsilon' },- { id: '\\Phi', label: '\\Phi' },- { id: '\\Psi', label: '\\Psi' },- { id: '\\Omega', label: '\\Omega' },- { id: '\\varGamma', label: '\\varGamma' },- { id: '\\varDelta', label: '\\varDelta' },- { id: '\\varTheta', label: '\\varTheta' },- { id: '\\varLambda', label: '\\varLambda' },- { id: '\\varXi', label: '\\varXi' },- { id: '\\varPi', label: '\\varPi' },- { id: '\\varSigma', label: '\\varSigma' },- { id: '\\varUpsilon', label: '\\varUpsilon' },- { id: '\\varPhi', label: '\\varPhi' },- { id: '\\varPsi', label: '\\varPsi' },- { id: '\\varOmega', label: '\\varOmega' },+ { id: '\\Gamma', label: '\\Gamma${0}' },+ { id: '\\Delta', label: '\\Delta${0}' },+ { id: '\\Theta', label: '\\Theta${0}' },+ { id: '\\Lambda', label: '\\Lambda${0}' },+ { id: '\\Xi', label: '\\Xi${0}' },+ { id: '\\Pi', label: '\\Pi${0}' },+ { id: '\\Sigma', label: '\\Sigma${0}' },+ { id: '\\Upsilon', label: '\\Upsilon${0}' },+ { id: '\\Phi', label: '\\Phi${0}' },+ { id: '\\Psi', label: '\\Psi${0}' },+ { id: '\\Omega', label: '\\Omega${0}' },+ { id: '\\varGamma', label: '\\varGamma${0}' },+ { id: '\\varDelta', label: '\\varDelta${0}' },+ { id: '\\varTheta', label: '\\varTheta${0}' },+ { id: '\\varLambda', label: '\\varLambda${0}' },+ { id: '\\varXi', label: '\\varXi${0}' },+ { id: '\\varPi', label: '\\varPi${0}' },+ { id: '\\varSigma', label: '\\varSigma${0}' },+ { id: '\\varUpsilon', label: '\\varUpsilon${0}' },+ { id: '\\varPhi', label: '\\varPhi${0}' },+ { id: '\\varPsi', label: '\\varPsi${0}' },+ { id: '\\varOmega', label: '\\varOmega${0}' },// ---------- Other letters/symbols ----------- { id: '\\imath', label: '\\imath' },- { id: '\\jmath', label: '\\jmath' },- { id: '\\nabla', label: '\\nabla' },- { id: '\\partial', label: '\\partial' },- { id: '\\aleph', label: '\\aleph' },- { id: '\\beth', label: '\\beth' },- { id: '\\gimel', label: '\\gimel' },- { id: '\\daleth', label: '\\daleth' },- { id: '\\eth', label: '\\eth' },- { id: '\\hbar', label: '\\hbar' },- { id: '\\hslash', label: '\\hslash' },- { id: '\\wp', label: '\\wp' },- { id: '\\Im', label: '\\Im' },- { id: '\\Re', label: '\\Re' },- { id: '\\Bbbk', label: '\\Bbbk' },- { id: '\\cnums', label: '\\cnums' },- { id: '\\Complex', label: '\\Complex' },- { id: '\\N', label: '\\N' },- { id: '\\Z', label: '\\Z' },- { id: '\\Q', label: '\\Q' },- { id: '\\R', label: '\\R' },- { id: '\\Reals', label: '\\Reals' },- { id: '\\reals', label: '\\reals' },+ { id: '\\imath', label: '\\imath${0}' },+ { id: '\\jmath', label: '\\jmath${0}' },+ { id: '\\nabla', label: '\\nabla${0}' },+ { id: '\\partial', label: '\\partial${0}' },+ { id: '\\aleph', label: '\\aleph${0}' },+ { id: '\\beth', label: '\\beth${0}' },+ { id: '\\gimel', label: '\\gimel${0}' },+ { id: '\\daleth', label: '\\daleth${0}' },+ { id: '\\eth', label: '\\eth${0}' },+ { id: '\\hbar', label: '\\hbar${0}' },+ { id: '\\hslash', label: '\\hslash${0}' },+ { id: '\\wp', label: '\\wp${0}' },+ { id: '\\Im', label: '\\Im${0}' },+ { id: '\\Re', label: '\\Re${0}' },+ { id: '\\Bbbk', label: '\\Bbbk${0}' },+ { id: '\\cnums', label: '\\cnums${0}' },+ { id: '\\Complex', label: '\\Complex${0}' },+ { id: '\\N', label: '\\N${0}' },+ { id: '\\Z', label: '\\Z${0}' },+ { id: '\\Q', label: '\\Q${0}' },+ { id: '\\R', label: '\\R${0}' },+ { id: '\\Reals', label: '\\Reals${0}' },+ { id: '\\reals', label: '\\reals${0}' },// ---------- Logic and set helpers ----------- { id: '\\Set', label: '\\Set{${0} \\mid ${1}}' },- { id: '\\set', label: '\\set{${0} \\mid ${1}}' },+ { id: '\\Set', label: '\\Set{${1} \\mid ${2}}${0}' },+ { id: '\\set', label: '\\set{${1} \\mid ${2}}${0}' },// ---------- Macros helpers ----------- { id: '\\def', label: '\\def\\${0}{${1}}' },- { id: '\\gdef', label: '\\gdef\\${0}{${1}}' },- { id: '\\newcommand', label: '\\newcommand\\${0}[${1}]{${2}}' },- { id: '\\renewcommand', label: '\\renewcommand\\${0}[${1}]{${2}}' },- { id: '\\providecommand', label: '\\providecommand\\${0}[${1}]{${2}}' },- { id: '\\let', label: '\\let\\${0}=\\${1}' },- { id: '\\globaldef', label: '\\global\\def\\${0}{${1}}' },+ { id: '\\def', label: '\\def\\${1}{${2}}${0}' },+ { id: '\\gdef', label: '\\gdef\\${1}{${2}}${0}' },+ { id: '\\newcommand', label: '\\newcommand\\${1}[${2}]{${3}}${0}' },+ { id: '\\renewcommand', label: '\\renewcommand\\${1}[${2}]{${3}}${0}' },+ { id: '\\providecommand', label: '\\providecommand\\${1}[${2}]{${3}}${0}' },+ { id: '\\let', label: '\\let\\${1}=\\${2}${0}' },+ { id: '\\globaldef', label: '\\global\\def\\${1}{${2}}${0}' },// ---------- Misc ----------- { id: '\\char', label: '\\char"${0}' },+ { id: '\\char', label: '\\char"${1}${0}' },] as const;