title: Pandoc: Include raw `tex` in `markdown` to `html` conversion
body: <p>Here is a simple markdown code:</p>
  
  <pre><code>$$ \alpha = \beta\label{eqone}$$
  Refer equation (\ref{eqone}).
  </code></pre>
  
  <p>When I convert this to html using</p>
  
  <pre><code>pandoc --mathjax file.markdown -o file.html
  </code></pre>
  
  <p>the <code>\ref{eqone}</code> is omitted in the <code>html</code> output since it is raw tex. Is there a work around to include the raw tex in html output?</p>
  
  <p>I understand that I could have used:</p>
  
  <pre><code>(@eqone) $$\alpha=\beta$$
  Refer equation ((@eqone)).
  </code></pre>
  
  <p>for equation numbering and referencing. This produces the number on the left side and also does not distinguish between figures, tables and equations. </p>
  
  <p>However, <code>mathjax</code> numbering appears on the right like the standard <code>tex</code> output.</p>
  
  <p>Any other work around for proper equation numbering is also welcome.</p>
  
  <p>Note: Following code needs to be added to the head of the generated <code>html</code> file to configure autonumbering in <code>mathjax</code>.</p>
  
  <pre><code>&lt;script type="text/x-mathjax-config"&gt;
    MathJax.Hub.Config({ TeX: { equationNumbers: {autoNumber: "all"} } });
  &lt;/script&gt;
  </code></pre>