waylan/Python-Markdown — Issue #78: Titles in multiline URLs incorrectly parsed
Author: Gamma3000
Created: 2012-02-01 11:23:18+00:00
State: open

Reference links with a title, where the title is listed on the line following the URL itself, have the title ignored and formatted as if the link weren't there.

Have an example:

Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
>>> print markdown.version
2.1.1
>>> markdown.markdown('''\
... This version works fine: [link][]
...
... [link]: http://daringfireball.net/projects/markdown/syntax#link "An Titel For An Yoo-Err-Ell"
... ''')
u'

This version works fine: link

'
>>> markdown.markdown('''\
... This version _should_ produce the same results, but instead formats the title as code: [link][]
...
... [link]: http://daringfireball.net/projects/markdown/syntax#link
... "An Titel For An Yoo-Err-Ell"
... ''')
u'

This version should produce the same results, but instead formats the title as code: link

\n

"An Titel For An Yoo-Err-Ell"\n

'