title: Pandoc Markdown: ignore text in PDF (but include in HTML)
body: <p>I am writing a Markdown report with both PDF and HTML output using Pandoc. I'd like some text will appear in HTML but not in PDF. The solution proposed <a href="https://stackoverflow.com/questions/18812365/pandoc-markdown-omit-text-in-pdf-version-but-include-in-html-version">here</a> isn't working for me.</p>
  
  <p>What I tried so far:</p>
  
  <pre><code>My text for both HTML and PDF &lt;div&gt;My HTML code for HTML only&lt;/div&gt;
  </code></pre>
  
  <p>and I make PDF with</p>
  
  <pre><code>~/.cabal/bin/pandoc -s -N --toc --template=default.latex -f markdown-markdown_in_html_blocks -o reproducibleResearch.pdf reproducibleResearch.md
  </code></pre>
  
  <p><code>~/.cabal/bin/pandoc</code> contains the last version of Pandoc (<code>~/.cabal/bin/pandoc</code>) while Ubuntu still has 1.9.</p>