unwanted paragraph (syntax edge-case)

John MacFarlane jgm at berkeley.edu
Sat Feb 9 11:53:25 EST 2008


I agree with you that markdown's behavior here is unexpected
(and non-ideal). Note that pandoc does not insert the <p> tags around
the first "asdf" unless you leave a blank line after it, as in:

* asdf

* asdf
* asdf

asdf

This leaves the choice up to the writer. There's some discussion
of this kind of edge case in the pandoc documentation:
http://johnmacfarlane.net/pandoc/README.html#lists

John

+++ Milian Wolff [Feb 08 08 21:55 ]:

> Hi list!

>

> Take this markdown input:

>

> * asdf

> * asdf

> * asdf

>

> asdf

>

> What I want:

>

> <ul>

> <li>asdf

>

> <ul>

> <li>asdf</li>

> <li>asdf</li>

> </ul>

>

> <p>asdf</p></li>

> </ul>

>

> But markdown puts the first asdf into a paragraph. There is nothing I can do

> about this, is there? Thus my Markdownify[^1] (HTML to Markdown) converter,

> cannot convert this HTML properly.

>

>

> [^1]: see <http://milianw.de/projects/markdownify>

>

> I recently released a second beta version.

> --

> Milian Wolff

> http://milianw.de

> OpenPGP key: CD1D1393





> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20080209/e3c72b29/attachment.pgp>


More information about the Markdown-Discuss mailing list