waylan/Python-Markdown — Issue #70: crash on blank URL
Author: aaronsw
Created: 2011-12-28 17:03:55+00:00
State: open

This definitely shouldn't cause a crash:

>>> markdown.markdown('<>')
Traceback (most recent call last):
File "", line 1, in
File "/Users/aaronsw/Code/infohacks/jottit/code/env/lib/python2.7/site-packages/markdown/__init__.py", line 386, in markdown
return md.convert(text)
File "/Users/aaronsw/Code/infohacks/jottit/code/env/lib/python2.7/site-packages/markdown/__init__.py", line 280, in convert
self.lines = prep.run(self.lines)
File "/Users/aaronsw/Code/infohacks/jottit/code/env/lib/python2.7/site-packages/markdown/preprocessors.py", line 146, in run
left_tag, left_index, attrs = self._get_left_tag(block)
File "/Users/aaronsw/Code/infohacks/jottit/code/env/lib/python2.7/site-packages/markdown/preprocessors.py", line 81, in _get_left_tag
tag = block[1:].replace(">", " ", 1).split()[0].lower()
IndexError: list index out of range