aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-25 21:10:02 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-25 21:10:02 -0800
commitc18fd7e6436243435d6b21934e943f54509b6e5f (patch)
tree51a54072b49e2a9d0a3ed7d9189863d1f1ee3bb8 /src/Text
parentce4b7fc416ebe14fc1f51a6860e15a4d999b9803 (diff)
downloadpandoc-c18fd7e6436243435d6b21934e943f54509b6e5f.tar.gz
RST reader: Allow anonymous form of explicit links.
`hello <url>`__ Closes #724.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/RST.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs
index c7b37066a..c5e2617da 100644
--- a/src/Text/Pandoc/Readers/RST.hs
+++ b/src/Text/Pandoc/Readers/RST.hs
@@ -962,6 +962,7 @@ explicitLink = try $ do
src <- manyTill (noneOf ">\n") (char '>')
skipSpaces
string "`_"
+ optional $ char '_' -- anonymous form
return $ B.link (escapeURI $ trim src) "" label'
referenceLink :: RSTParser Inlines