Skip to content

Instantly share code, notes, and snippets.

@uranusjr
Last active August 29, 2015 14:05
Show Gist options
  • Save uranusjr/be29f4fdbe625656d8d9 to your computer and use it in GitHub Desktop.
Save uranusjr/be29f4fdbe625656d8d9 to your computer and use it in GitHub Desktop.
Test cases for MathJax support
\\[
1*2*3 multi-line math
\\]
\\( 1*2*3 inline-math \\)
$$ 1*2*3 math with dollar $$
$$ 1*2*3 \$ \\ \text{dollar with escapes} $$
\\( \\ \text{backslash with escapes} \$ 1*2*3 \\)
\( not *really* math \)
\$$ also *not* math \$$
this$$ should *not* be$$ math
nor $$ *should* $$this
this $$*should* be$$ math
Something \\{ like *math* but \\} is not
Also \\\(like *math* but \\\) is not
\\\\( should not be *math* either \\\\)
This is \\( math, and the \\\( inner one \\\) should be \\) preserved
$$ did you <em> know </em> this is math? $$
<p>\[
1*2*3 multi-line math
\]</p>
<p>\( 1*2*3 inline-math \)</p>
<p>$$ 1*2*3 math with dollar $$</p>
<p>$$ 1*2*3 \$ \\ \text{dollar with escapes} $$</p>
<p>\( \\ \text{backslash with escapes} \$ 1*2*3 \)</p>
<p>( not <em>really</em> math )</p>
<p>$$ also <em>not</em> math $$</p>
<p>this$$ should <em>not</em> be$$ math</p>
<p>nor $$ <em>should</em> $$this</p>
<p>this $$*should* be$$ math</p>
<p>Something \{ like <em>math</em> but \} is not</p>
<p>Also \(like <em>math</em> but \) is not</p>
<p>\\( should not be <em>math</em> either \\)</p>
<p>This is \( math, and the \\\( inner one \\\) should be \) preserved</p>
<p>$$ did you &lt;em&gt; know &lt;/em&gt; this is math? $$</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment