Login
or
register
Overview
Introduction
Features
Credits
License
This Wiki
Status
News
Releases
Change Log
Recent Wiki Edits
User Guide
Installation
Command Line
Using as a Module
Integration
Reporting Bugs
Advanced
Mailing List
Source Code
Test Suite
Extensions
Extensions
Writing Extensions
Available Extensions
Related Projects
Tickets
▹ 000035
List items with 5 spaces
Anonymous users must enter
captcha
below.
Ticket Information
Ticket Title
Don't put anything here
(This report comes from a [list discussion](http://sourceforge.net/mailarchive/forum.php?thread_name=ab8662790906170521s77037cccw3fc574ca11b41008%40mail.gmail.com&forum_name=python-markdown-discuss) as reported by Mikael Garde Nielsen.) When parsing a list item (as the first item in a list) which starts with five spaces after the asterisk, Markdown crashes with an IndexError in the blockparser. >>> markdown.markdown('* list') --------------------------------------------------------------------------- IndexError Traceback (most recent call last) ... --> 295 self.parser.parseBlocks(lst[-1], [item]) IndexError: child index out of range Additionally, when an item with five spaces it not the first item in a list, the output is weird/incorrect: >>> markdown.markdown('* one\n* five') <ul> <li>one<p>five</p> </li> </ul> As opposed to: >>> markdown.markdown('* one\n* four') <ul> <li>one</li> <li>four</li> </ul> Loose lists are also interesting: >>> markdown.markdown('* one\n\n* five\n') <ul> <li> <p>one</p> </li> <li> <pre><code>five </code></pre> </li> </ul> It could be argued that that is correct, but Babelmark disagrees (see <http://babelmark.bobtfish.net/?markdown=*+one%0D%0A%0D%0A*+++++five>).
Reported by
Assigned to
Status
open
someday
resolved
closed
Resolution
n.a.
fixed
wontfix
Advanced Fields
Don't put anything here
Priority
unassigned
high
medium
low
Resolution Explanation
Component
Don't put anything here
Don't put anything here
Don't put anything here
About This Edit
Minor Edit
Edit Summary
Don't put anything here
save
preview
cancel
Powered by
Sputnik
|
XHTML 1.1