Markdown/KaTeX fails to render long "aligned" blocks
The following math block fails to render. It works fine on the KaTeX Website
```math
\begin{aligned}
ed &= 1 \mod \phi(N)\\
\implies ed &= k \phi(N) + 1\\
\implies k \phi(N) + 1 &= 0 \mod e\\
\implies k (N + 1 - p - q) + 1 &= 0 \mod e\\
\implies 2k \left(\frac{N + 1}2 + \frac{-p-q}2\right) + 1 &= 0 \mod e
\end{aligned}
```
As math block ("There was an error rendering this math block"):
\begin{aligned}
ed &= 1 \mod \phi(N)\\
\implies ed &= k \phi(N) + 1\\
\implies k \phi(N) + 1 &= 0 \mod e\\
\implies k (N + 1 - p - q) + 1 &= 0 \mod e\\
\implies 2k \left(\frac{N + 1}2 + \frac{-p-q}2\right) + 1 &= 0 \mod e
\end{aligned}
The individual rows are rendered correctly:
```math
\begin{aligned}
ed &= 1 \mod \phi(N)\\
\end{aligned}
```
```math
\begin{aligned}
\implies ed &= k \phi(N) + 1\\
\end{aligned}
```
```math
\begin{aligned}
\implies k \phi(N) + 1 &= 0 \mod e\\
\end{aligned}
```
```math
\begin{aligned}
\implies k (N + 1 - p - q) + 1 &= 0 \mod e\\
\end{aligned}
```
```math
\begin{aligned}
\implies 2k \left(\frac{N + 1}2 + \frac{-p-q}2\right) + 1 &= 0 \mod e
\end{aligned}
```
\begin{aligned}
ed &= 1 \mod \phi(N)\\
\end{aligned}
\begin{aligned}
\implies ed &= k \phi(N) + 1\\
\end{aligned}
\begin{aligned}
\implies k \phi(N) + 1 &= 0 \mod e\\
\end{aligned}
\begin{aligned}
\implies k (N + 1 - p - q) + 1 &= 0 \mod e\\
\end{aligned}
\begin{aligned}
\implies 2k \left(\frac{N + 1}2 + \frac{-p-q}2\right) + 1 &= 0 \mod e
\end{aligned}
Two rows together also work:
```math
\begin{aligned}
ed &= 1 \mod \phi(N)\\
\implies ed &= k \phi(N) + 1\\
\end{aligned}
```
\begin{aligned}
ed &= 1 \mod \phi(N)\\
\implies ed &= k \phi(N) + 1\\
\end{aligned}