Bug: Code in blockquotes (1.05b)

Ron Hale-Evans rwhe at ludism.org
Mon May 3 02:37:15 EDT 2004


I am trying to include code in a blockquote, which has been indented
to match the surrounding text.  Why does running `Markdown.pl
--htmltags` on the following text:

    1. BlahA.
    
       > **BlahB:**
       >:
       >	BlahC
       >
       >	BlahD
    
    1. BlahE.

produce the following HTML? :

    <ol>
    <li><p>BlahA.</p>
    
    <blockquote>
    	<p><strong>BlahB:</strong>
    
    
    <pre><code>   BlahC&lt;/p&gt;
    
    &lt;p&gt;BlahD&lt;/p&gt;
    </code></pre>
    
    </blockquote></li>
    <li><p>BlahE.</p></li>
    </ol>

Using backquotes and line breaks to simulate a code environment does
the same thing.

Any ideas?

Ron Hale-Evans
rwhe at ludism.org


More information about the Markdown-discuss mailing list