Re: para termination

Le 25 nov. 2012 à 21:46, Ryan Freebern a écrit :
> \n\n | \n\ws+\n | \nEOF | \n\ws+EOF | EOF

In fact these are the way you can terminate a paragraph

\n\n
\nEOF
\n\s*\n
\n\s*EOF
\n\t*\n
\n\t*EOF

(unbreakable spaces in between two markdown paragraphs will render as one paragraph in HTML.)


with one trailing space or one trailing tab on the line.

\s\nEOF
\s\n\n
\s\n\s*\n
\t\nEOF
\t\n\n
\t\n\s*\n

Interesting thing here. Some implementations will keep the spaces/tabs at the end of the line, some will remove it. Note that it doesn't change the rendering of the HTML anyway.

See:
http://johnmacfarlane.net/babelmark2/?text=This+is+a+paragraph.+%0A%0A

I may have forgotten some.
-- 
Karl Dubost - http://dev.opera.com/
Developer Relations, Opera Software

Received on Monday, 26 November 2012 08:43:06 UTC