ticket id
000065
status
resolved
priority
???
assigned to
Waylan
Reported by: Hernâni Cerqueira
Component:

The following input:

<

Results in the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File ".../markdown/__init__.py", line 388, in convert
    self.lines = prep.run(self.lines)
  File ".../markdown/preprocessors.py", line 128, in run
    left_tag = self._get_left_tag(block)
  File ".../markdown/preprocessors.py", line 82, in _get_left_tag
    return block[1:].replace(">", " ", 1).split()[0].lower()
IndexError: list index out of range

It appears that the raw html parser is tripping up on it. The weird thing is that if the < is in a codeblock or has other text in the line, the error does not occur.

Resolution

fixed

Powered by Sputnik | XHTML 1.1