title: removing html created by markdown
body: <p>I am using Ruby (and Rails) with Markdown to convert the content of a text field into HTML in a post.</p>
  
  <p>So for example:</p>
  
  <pre><code># Heading.
  Some text.
  </code></pre>
  
  <p>creates</p>
  
  <pre><code>&lt;h1&gt;Heading.&lt;/h1&gt;
  &lt;p&gt;Some text.&lt;/p&gt;
  </code></pre>
  
  <p>This is good for my Article page, but when I want to display the same content in a teaser, I do not want to show the formatting given by markdown (OR the symbols used in the field to do the formatting...)</p>
  
  <p>Essentially I'd like to strip the all the HTML after it's been created by Markdown... but Im not sure if that's the right approach and I can use parse the markdown as nothing...</p>
  
  <p>So that the returned html is simply:</p>
  
  <pre><code>Heading.
  Some Text.
  </code></pre>
  
  <p>(And will display as "Heading. Some Text." in the browser, not "# Heading. Some Text")</p>