Syntax Questions
Michel Fortin
michel.fortin at michelf.com
Tue Jul 22 06:35:41 EDT 2008
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
michel.fortin at michelf.com
http://michelf.com/
More information about the Markdown-Discuss
mailing list