closing ul/li getting wrapped in p

John Gruber gruber at fedora.net
Fri Nov 5 19:35:45 EST 2004


Stephen Haberman <stephenh at chase3000.com> wrote on 10/30/04 at 6:54pm:

> > $result = "<$list_type>\n" . $result . "</$list_type>\n\n";
> 
> Okay, I figured out why the two new lines are required - so that following
> text will be wrapped in its own paragraph. I didn't realize I was breaking
> that before.

Shit. This is what I get for sitting down to write some code
*before* I catch up on this list. The
just-released-a-few-minutes-ago 1.0.1b2 uses the same "fix" you
originally tried -- turning that one "\n\n" into just "\n".

I'm not sure what you're talking about here about where this fails.
Can you show a simple example case?


> Is there an automated test suite for Markdown?

Yes, I have one here. It could probably use a lot more example
cases, however. I'll package it together and make it available for
download soon.

-J.G.


More information about the Markdown-discuss mailing list