Doubt about standard syntax
Waylan Limberg
waylan at gmail.com
Fri Dec 29 14:04:59 EST 2006
On 12/29/06, A. Pagaltzis <pagaltzis at gmx.de> wrote:
> * Andrea Censi <andrea at censi.org> [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:
> Some quote.
</p>
--------------
--
----
Waylan Limberg
waylan at gmail.com
More information about the Markdown-Discuss
mailing list