I am using Pandoc to convert LaTeX files to HTML files. Since these LaTeX files are mathematical documents, they contain theorem-like environments using `amsthm`. In the output HTML files these environments are missing.

More precisely, the contents of the environments are there but e.g. the word "Theorem" and the theorem number are missing.

Is there a way to automatically convert these environments as well?

**Edit:** Please find below a MWE:

```
\documentclass{scrartcl}
\usepackage{amsthm}

\newtheorem{theorem}{Theorem}

\begin{document}
  \begin{theorem}
    There is no largest prime number.
  \end{theorem}
\end{document}

```

which is compiled by `pdflatex` to (which is the desired output)
[![enter image description here](https://i.stack.imgur.com/KM8j9.png)](https://i.stack.imgur.com/KM8j9.png)

Using `pandoc` with the command

```
pandoc MWE_pandoc.tex -f latex -s --mathjax -o MWE_pandoc.html

```

this generates the following:

```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <meta http-equiv="Content-Style-Type" content="text/css" />
   <meta name="generator" content="pandoc" />
   <title></title>
   <style type="text/css">code{white-space: pre;}</style>
 </head>
 <body>
   <p>There is no largest prime number.</p>
 </body>

```

which is (correctly) rendered to:

[![enter image description here](https://i.stack.imgur.com/GyRQI.png)](https://i.stack.imgur.com/GyRQI.png)

The pandoc version I used is pandoc 1.16.0.2