aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-02-21 17:32:02 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-02-21 17:32:02 -0800
commita826d3936dcdefe630715007917dc676eb60861d (patch)
treed2eef210719ce9e5f9b0bca02f0aea16e2c0cc33 /src/Text
parentb677ce066347db32645a973d859d741309038c4e (diff)
downloadpandoc-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.hs2
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