Le 2008-07-22 à 2:47, Jurgens du Toit a écrit :

At the end of the day I probably will maintain my own copy, with some
changes, of Markdown. I also don't want to break the syntax. One of my
previous mails I mentioned a way that makes the Markdown more useable (by being able to usefully use nl2br on the Markdown'ed string) without breaking
the syntax or HTML and plain text presentation.

Have you considered what will happen to code blocks with `nl2br`? Won't this:

    <pre><code>function a() {
        return 1;
    }</code></pre>

be turned into this:

    <pre><code>function a() {<br />
        return 1;<br />
    }</code></pre>

effectively doubling the newlines?


Michel Fortin
[EMAIL PROTECTED]
http://michelf.com/


_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to