orsharir / github-mathjax

Chrome extension for rendering LaTeX equations in GitHub with MathJax
Other
153 stars 49 forks source link

Missing or unrecognized delimiter for \left #16

Open xpqiu opened 7 years ago

xpqiu commented 7 years ago

Missing or unrecognized delimiter for \left .

For example, $$ \phi_2(x,y)=\left{ \begin{array}{11} 1 & \textrm{if x contains 'stock' and y is 'sport'}\ 0 & \textrm{otherwise} \end{array} \right.. $$

admnll commented 5 years ago

Remove the first bracket and replace it with \ lbrace $$ \phi_2(x,y)=\left\lbrace \begin{array}{ll} 1 & \textrm{if x contains 'stock'
and y is 'sport'} \newline 0 & \textrm{otherwise} \end{array} \right. $$

muzimuzhi commented 5 years ago

According to GitHub Flavored Markdown Spec, Sec. 6.1

Any ASCII punctuation character may be backslash-escaped: \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~

Hence the whole process is

And, duplicate of #26 .

muzimuzhi commented 5 years ago

Sorry, I have not found that this is a so-old issue.

piglaker commented 3 years ago

thx