mathpix-markdown-it icon indicating copy to clipboard operation
mathpix-markdown-it copied to clipboard

Support latex inside html

Open EliasSchlatter opened this issue 5 years ago • 2 comments

Hi Mathpix Team,

With the option htmlTags={true} on a MathpixMarkdown component it is possible to render html, but it seems not to be possible to write latex inside html. Do you think there is a way to implement this capability?

For example, can you provide any way to render:

<MathpixMarkdown htmlTags={true} text={"<div>$$2+2$$</div>"}

another example:

<ol>
<li>\begin{align*}
&\frac{x+4}{(x+1)(x-2)}
\end{align*}</li>
</ol>

EliasSchlatter avatar May 26 '20 10:05 EliasSchlatter

With the option htmlTags={true} on a MathpixMarkdown component it is possible to render html, but it seems not to be possible to write latex inside html. Do you think there is a way to implement this capability?

Yes, you are right, at the moment there is no such possibility, but perhaps it will be implemented in the future.

You can use LaTeX syntax for this:

\begin{itemize}
  \item One entry in the list
  \item 
  \begin{align*}
	&\frac{x+4}{(x+1)(x-2)}
  \end{align*}

\end{itemize}

\begin{enumerate}
  \item The labels consists of sequential numbers.
  \item \begin{align*}
	&\frac{x+4}{(x+1)(x-2)}
  \end{align*}
\end{enumerate}

You can try it View Demo

Снимок экрана 2021-01-15 в 17 12 20

More information about LaTeX List Syntax: https://mathpix.com/docs/mathpix-markdown/lists

OlgaRedozubova avatar Jan 15 '21 15:01 OlgaRedozubova

@OlgaRedozubova, Please let me know if this functionality is still planned to be implemented in the future

GuVictory avatar Jul 17 '23 11:07 GuVictory