Fixed bug in reference link parsing in markdown_mmd.

The bug was triggered by:

Link to [Google][]. Link to [twitter][].

[Google]: http://google.com
[twitter]: http://twitter.com
This commit is contained in:
John MacFarlane 2014-02-21 17:32:02 -08:00
parent b677ce0663
commit a826d3936d

View file

@ -354,7 +354,7 @@ referenceKey = try $ do
tit <- option "" referenceTitle
-- currently we just ignore MMD-style link/image attributes
_kvs <- option [] $ guardEnabled Ext_link_attributes
>> many (spnl >> keyValAttr)
>> many (try $ spnl >> keyValAttr)
blanklines
let target = (escapeURI $ trimr src, tit)
st <- getState