On 12/29/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> * Andrea Censi <[EMAIL PROTECTED]> [2006-12-29 18:50]:
> > In other words, a paragraph, once started, eats everything
> > until a blank line?
>
> Except blockquotes and headings.

Mostly. It depends on which implementation your using. Perl (the
original) gets it right. Php wraps the blockquotes and headers in the
paragraph (did I find a bug?) and python misses the blockquote
completely but gets the header right.

The modified example:

--------------
Paragraph and no space:
* ciao

Paragraph and 1 space:
 * ciao

Paragraph and 3 spaces:
  * ciao

Paragraph and 4 spaces:
   * ciao

Paragraph before header:
#Header

Paragraph before blockquote:
> Some quote.
--------------

Perl's output:

--------------
<p>Paragraph and no space:
* ciao</p>

<p>Paragraph and 1 space:
 * ciao</p>

<p>Paragraph and 3 spaces:
  * ciao</p>

<p>Paragraph and 4 spaces:
   * ciao</p>

<p>Paragraph before header:</p>

<h1>Header</h1>

<p>Paragraph before blockquote:</p>

<blockquote>
  <p>Some quote.</p>
</blockquote>
--------------

PHP's output

--------------
<p>Paragraph and no space:
* ciao</p>

<p>Paragraph and 1 space:
 * ciao</p>

<p>Paragraph and 3 spaces:
  * ciao</p>

<p>Paragraph and 4 spaces:
   * ciao</p>

<p>Paragraph before header:
<h1>Header</h1></p>

<p>Paragraph before blockquote:
<blockquote>
  <p>Some quote.</p>
</blockquote></p>
--------------

Python's output:

--------------
<p>Paragraph and no space:
   * ciao
</p>
<p>Paragraph and 1 space:
    * ciao
</p>
<p>Paragraph and 3 spaces:
     * ciao
</p>
<p>Paragraph and 4 spaces:
      * ciao
</p>
<p>Paragraph before header:
</p>

<h1>Header</h1>
<p>Paragraph before blockquote:
   &gt; Some quote.
</p>
--------------


-- 
----
Waylan Limberg
[EMAIL PROTECTED]
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to