diff options
| -rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 41eea16c5..59f825808 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -225,12 +225,12 @@ referenceTitle = try $ do    return $ decodeCharacterReferences tit  noteMarker :: GenParser Char ParserState [Char] -noteMarker = skipNonindentSpaces >> string "[^" >> manyTill (noneOf " \t\n") (char ']') +noteMarker = string "[^" >> many1Till (noneOf " \t\n") (char ']')  rawLine :: GenParser Char ParserState [Char]  rawLine = do    notFollowedBy blankline -  notFollowedBy' noteMarker +  notFollowedBy' $ try $ skipNonindentSpaces >> noteMarker    contents <- many1 nonEndline    end <- option "" (newline >> optional indentSpaces >> return "\n")     return $ contents ++ end @@ -241,6 +241,7 @@ rawLines = many1 rawLine >>= return . concat  noteBlock :: GenParser Char ParserState [Char]  noteBlock = try $ do    startPos <- getPosition +  skipNonindentSpaces    ref <- noteMarker    char ':'    optional blankline | 
