git.iko.soy/typeable/pandoc
on master help sign in
RST reader: Fixed bug in parsing explicit links (resolves Issue #44).
b9e30cafiddlosopher
Text/Pandoc/Readers/RST.hs+3−2
@@ -570,8 +570,9 @@ link = choice [explicitLink, referenceLink, autoLink] <?> "link"
570
570
571explicitLink = try $ do
571explicitLink = try $ do
572 char '`'
572 char '`'
573− notFollowedBy (char '`') -- `` is marks start of inline code
573+ notFollowedBy (char '`') -- `` marks start of inline code
574+ label <- manyTill (notFollowedBy (char '`') >> inline)
574− label <- manyTill inline (try (spaces >> char '<'))
575+ (try (spaces >> char '<'))
575 src <- manyTill (noneOf ">\n ") (char '>')
576 src <- manyTill (noneOf ">\n ") (char '>')
576 skipSpaces
577 skipSpaces
577 string "`_"
578 string "`_"