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
> [email protected]
> http://six.pairlist.net/mailman/listinfo/markdown-discuss

Attachment: signature.asc
Description: Digital signature

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

Reply via email to