EVOLUTION-MANAGER
Edit File: sane_lists.html
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>Sane Lists Extension — Python Markdown</title> <link rel="stylesheet" href="../default.css" type="text/css"> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../siteindex.html" title="General Index">index</a></li> <li class="right"> <a href="smarty.html" title="SmartyPants Extension" accesskey="N">next</a> |</li> <li class="right"> <a href="nl2br.html" title="New Line to Break Extension" accesskey="P">previous</a> |</li> <li><img src="../py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="../index.html">Python Markdown v2.4.1 documentation</a> »</li> <li><a href="index.html">Extensions</a> »</li> <li><a href="sane_lists.html">Sane Lists Extension</a> »</li> </ul> </div> <!-- .related --> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <h1 id="sane-lists">Sane Lists<a class="headerlink" href="#sane-lists" title="Permanent link">¶</a></h1> <h2 id="summary">Summary<a class="headerlink" href="#summary" title="Permanent link">¶</a></h2> <p>The Sane Lists extension alters the behavior of the Markdown List syntax to be less surprising.</p> <p>This extension is included in the standard Markdown library.</p> <h2 id="syntax">Syntax<a class="headerlink" href="#syntax" title="Permanent link">¶</a></h2> <p>Sane Lists do not allow the mixing of list types. In other words, an ordered list will not continue when an unordered list item is encountered and vice versa. For example:</p> <pre><code>1. Ordered item 1 2. Ordered item 2 * Unordered item 1 * Unordered item 2 </code></pre> <p>will result in the following output:</p> <pre><code><ol> <li>Ordered item 1</li> <li>Ordered item 2</li> </ol> <ul> <li>Unordered item 1</li> <li>Unordered item 2</li> </ul> </code></pre> <p>Whereas the default Markdown behavior would be to generate an unordered list.</p> <p>Note that, unlike the default Markdown behavior, if a blank line is not included between list items, the different list type is ignored completely. This corresponds to the behavior of paragraphs. For example:</p> <pre><code>A Paragraph. * Not a list item. 1. Ordered list item. * Not a separate list item. </code></pre> <p>With this extension the above will result in the following output:</p> <pre><code><p>A Paragraph. * Not a list item.</p> <ol> <li>Ordered list item. * Not a separate list item.</li> </ol> </code></pre> <p>In all other ways, Sane Lists should behave as normal Markdown lists.</p> <h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">¶</a></h2> <p>See <a href="index.html">Extensions</a> for general extension usage, specify <code>sane_lists</code> as the name of the extension.</p> <p>This extension does not accept any special configuration options.</p> </div> <!-- .body --> </div> <!-- .bodywrapper --> </div> <!-- .documentwrapper --> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3>Table Of Contents</h3> <div class="toc"> <ul> <li><a href="#sane-lists">Sane Lists</a><ul> <li><a href="#summary">Summary</a></li> <li><a href="#syntax">Syntax</a></li> <li><a href="#usage">Usage</a></li> </ul> </li> </ul> </div> <h4>Previous topic</h4> <p class="topless"><a href="nl2br.html" title="previous chapter">New Line to Break Extension</a></p> <h4>Next topic</h4> <p class="topless"><a href="smarty.html" title="next chapter">SmartyPants Extension</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="https://github.com/waylan/Python-Markdown/issues" >Report a Bug</a></li> <li><a href="sane_lists.txt" rel="nofollow">Show Source</a></li> </ul> </div> <!-- .sphinxsidebarwrapper --> </div> <!-- .sphinxsidebar --> <div class="clearer"></div> </div> <!-- .document --> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../siteindex.html" title="General Index">index</a></li> <li class="right"> <a href="smarty.html" title="SmartyPants Extension" accesskey="N">next</a> |</li> <li class="right"> <a href="nl2br.html" title="New Line to Break Extension" accesskey="P">previous</a> |</li> <li><img src="../py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="../index.html">Python Markdown v2.4.1 documentation</a> »</li> <li><a href="index.html">Extensions</a> »</li> <li><a href="sane_lists.html">Sane Lists Extension</a> »</li> </ul> </div> <!-- .related --> <div class="footer">© 2010-2012 Python Markdown Project</div> </body> </html>