title: Pandoc : generate a html embedding Latex equation from markdown input
body: <p>I am trying to convert a markdown file containing a Latex equation to an Html file using pandoc.</p>
  
  <p>I tried the following synthax in file <code>test.md</code> :</p>
  
  <pre><code>$$ \frac{1}{2} = 0.5 \neq \sqrt{2} $$
  </code></pre>
  
  <p>and I invoked pandoc using</p>
  
  <pre><code>pandoc test.md -o test.html --mathjax
  </code></pre>
  
  <p>as seems to be indicated in <a href="https://stackoverflow.com/a/25065430/3492512">this answer</a>. The generated <code>test.html</code> file contains the single line</p>
  
  <pre><code>&lt;p&gt;&lt;span class="math"&gt;\[ \frac{1}{2} = 0.5 \neq \sqrt{2} \]&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>and when opening <code>test.html</code> with a web browser, the output on the screen is litteraly</p>
  
  <pre><code>\[ \frac{1}{2} = 0.5 \neq \sqrt{2} \]
  </code></pre>
  
  <p>instead of a nice "latex-compiled" equation.</p>
  
  <p>What did I miss?</p>
  
  <p>P.S. I am using pandoc 1.12.2.1</p>