aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-07-14 08:42:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-07-14 08:42:38 -0700
commit00b11bcbcf514585411aac7e578c1a718ff5de20 (patch)
treef19e26dba3c879350503c4c053fade6d9d4da3ff /src/Text
parent106786ef1b1275cbaab9173e7f1c9372dec88279 (diff)
downloadpandoc-00b11bcbcf514585411aac7e578c1a718ff5de20.tar.gz
Fixed exponential parsing bug in textile reader.
Closes #3020.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs
index 3b8278e27..7c53ef28d 100644
--- a/src/Text/Pandoc/Readers/Textile.hs
+++ b/src/Text/Pandoc/Readers/Textile.hs
@@ -277,6 +277,7 @@ definitionListStart :: Parser [Char] ParserState Inlines
definitionListStart = try $ do
char '-'
whitespace
+ notFollowedBy newline
trimInlines . mconcat <$>
many1Till inline (try (string ":=")) <* optional whitespace