Closed mn4367 closed 10 years ago
This is (almost) standard Markdown behavior. The only difference is that Markdown.pl doesn't wrap the first paragraph in a <p>
.
OK, thanks, but wouldn't it be better then to enable this behavior only when --compatibility
is used?
This is standard Markdown behavior. Why would I want to change it? This is what I want lists to do.
Do you have a use case for this? I thought quite a bit about this, but I was unable to find somehting I could only achieve with this behavior.
Perhaps we aren't understanding each other. I'll re-explain.
Wrapping list items in <p>
tags is standard Markdown behavior when the list items are separated by blank lines. John Gruber had this in the original Markdown.pl, and everyone since then does the same thing (aside from bugs that cause an error when handling it.) Please read the Markdown syntax guide if you aren't familiar with it.
I didn't create it. But I do find it handy. I have no intention of changing it.
You're welcome to bring it up with Gruber, but since he hasn't touched Markdown.pl in pushing 10 years, I suspect that won't get you very far.
Given all this, am I misunderstanding your question?
Thanks, no you didn't misunderstand my question.
This code
produces this HTML:
But this code
produces the follwing HTML:
Is there a reason, why all the list items are now wrapped in
<p>
-Tags? I'd consider this a bug, unless it is meant as a feature (but what is the pupose?). The behavior is the same for unordered and ordered lists.Normally this isn't visible in a browser, but if somebody defines a line height via CSS of, say 1.5em, the list looks different.