From: Waylan L. <way...@ic...> - 2014-09-09 01:30:31
|
This is definitely not a bug. For some reason newcomers to markdown always try to add extra blank lines to break a list/codeblock/blockquote into two separate blocks. There is simply nothing in the syntax [rules] to support that however. And in fact, the original implementation (markdown.pl) does not support such a concept. This is simply a fact of how Markdown works. Extra blank lines (more than one) have no implied meaning Once you get used to the idea it becomes easy enough to work with. Some people have been known to use HTML comments to get around this. Remember raw HTML is passed through as is. And an HTML comment does not get displayed in the browser. If you want to break one list into two with nothing between, insert a raw HTML comment between them. And as you seem to be confused about why the `<p>` tags are introduced, reread the section of the rules on [lists]. Particularly the part that starts with this line: > If list items are separated by blank lines, Markdown will wrap the items in `<p>` tags in the HTML output. [rules]: http://daringfireball.net/projects/markdown/syntax [lists]: http://daringfireball.net/projects/markdown/syntax#list Waylan Limberg -----Original Message----- From: Dave Pawson [mailto:dav...@gm...] Sent: Monday, September 08, 2014 9:20 AM To: PythonMD list Subject: [Python-markdown-discuss] nested list termination Given input * a *a1 * a *b *b1 I.e. two lists, each having nested children, the output needs 'something' (a para or hr etc) between the two lists, or the html output appears to put p elements inside the 'outer' li elements. Is this just my processing chain or a know 'feature' please? Dave -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk ---------------------------------------------------------------------------- -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ Python-markdown-discuss mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |