diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-02-21 17:32:02 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-02-21 17:32:02 -0800 |
commit | a826d3936dcdefe630715007917dc676eb60861d (patch) | |
tree | d2eef210719ce9e5f9b0bca02f0aea16e2c0cc33 /src/Text | |
parent | b677ce066347db32645a973d859d741309038c4e (diff) | |
download | pandoc-a826d3936dcdefe630715007917dc676eb60861d.tar.gz |
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
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 8a41cef49..dd6fa733a 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -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 |