Skip to content

Instantly share code, notes, and snippets.

@RoyiAvital
Last active May 26, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoyiAvital/dd319e5d7858e75b195cb6880c2b8e4c to your computer and use it in GitHub Desktop.
Save RoyiAvital/dd319e5d7858e75b195cb6880c2b8e4c to your computer and use it in GitHub Desktop.
Math Rendering Test for Markdown Parser

Math Rendering Test Case

Inline Math

This is Inline Math using \( ... \) ( x + y = z \in \left{ -1, 1 \right} ) and now using $ ... $ $ x + y = z \in \left{ -1, 1 \right} $ and it should handle the case of giving my friend 2$.

We can also do the same without gaps.

This is Inline Math using \(...\) (x + y = z \in \left{ -1, 1 \right}) and now using $...$ $x + y = z \in \left{ -1, 1 \right}$ and it should handle the case of giving my friend 2$.

It can also take care of cases of one sided gaps.

This is Inline Math using \( ...\) ( x + y = z \in \left{ -1, 1 \right}) and now using $ ...$ $ x + y = z \in \left{ -1, 1 \right}$ and it should handle the case of giving my friend 2$.

This is Inline Math using \(... \) (x + y = z \in \left{ -1, 1 \right} ) and now using $... $ $x + y = z \in \left{ -1, 1 \right} $ and it should handle the case of giving my friend 2$.

Display Math

Well, this should be less challenging:

[ x + y = z \in \left{ -1, 1 \right} ]

[x + y = z \in \left{ -1, 1 \right}]

[ x + y = z \in \left{ -1, 1 \right}]

[x + y = z \in \left{ -1, 1 \right} ]

$$ x + y = z \in \left{ -1, 1 \right} $$

$$x + y = z \in \left{ -1, 1 \right}$$

$$ x + y = z \in \left{ -1, 1 \right}$$

$$x + y = z \in \left{ -1, 1 \right} $$

Environments

\begin{align*} x + y & = z \in \left{ -1, 1 \right} \ g + h & = l \end{align*}

$$ \begin{align*} x + y & = z \in \left{ -1, 1 \right} \\ g + h & = l \end{align*} $$

$$ \begin{align*} x + y & = z \in \left{ -1, 1 \right} \\ g + h & = l \end{align*}$$

$$\begin{align*} x + y & = z \in \left{ -1, 1 \right} \\ g + h & = l \end{align*} $$

\begin{align*} x + y & = z \in \left{ -1, 1 \right} \ g + h & = l \end{align*}

\begin{align*}x + y & = z \in \left{ -1, 1 \right} \ g + h & = l\end{align*}

\begin{align*} x + y & = z \in \left{ -1, 1 \right} \ g + h & = l\end{align*}

\begin{align*}x + y & = z \in \left{ -1, 1 \right} \ g + h & = l \end{align*}

$$\begin{align*}x + y & = z \in \left{ -1, 1 \right} \ g + h & = l\end{align*}$$

$$ \begin{align*}x + y & = z \in \left{ -1, 1 \right} \ g + h & = l\end{align*} $$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment