benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.79k stars 2.73k forks source link

Labeled LaTeX equations are not supported in StackEdit #1424

Open N0rbert opened 5 years ago

N0rbert commented 5 years ago

I have connected my Google Drive to StackEdit and loaded my test document into it. I have the following equation notations in this document:


## LaTeX equation in the form `\begin{equation}...\end{equation}`

There is an equation below

\begin{equation}
h(z) = sinh(z)
\end{equation}

it contains hyperbolic sine and auto-number.

---

## LaTeX equation in labeled form `\begin{equation}...(\#eq:label)\end{equation}`

Below is equation

\begin{equation}
  f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k}
  (\#eq:binom)
\end{equation}

it contains Newton's binom, it may be reffered as \@ref(eq:binom).

---

### LaTeX equations in labeled form for Xaringan `\begin{equation}...\label{label}\end{equation}`

Below is equation

\begin{equation}
  g\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k}
\label{binom2}
\end{equation}

it contains Newton's binom, it may be reffered as \eqref{binom2}.

StackEdit can't render them -

stackedit-wrong

but for example ReText renders them without problems:

retext-right

and VNote too.

ajusa commented 5 years ago

StackEdit uses KaTeX, which currently supports a subset of LaTeX. I would recommend checking their table of supported operations.

umgupta commented 5 years ago

Is it possible to use mathjax, that has good support for latex environments I think.