From dd78dd6d1beb860416c1c9114064d2e7bc1ff86a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 8 Aug 2014 12:15:57 -0700 Subject: Textile reader: don't allow inline formatting to extend over newline. This matches behavior of RedCarpet, avoids some ugly bugs, and improves performance. --- src/Text/Pandoc/Readers/Textile.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs index 6d839ec1d..0562bd2ce 100644 --- a/src/Text/Pandoc/Readers/Textile.hs +++ b/src/Text/Pandoc/Readers/Textile.hs @@ -616,7 +616,8 @@ simpleInline border construct = try $ do attr <- attributes body <- trimInlines . mconcat <$> withQuoteContext InSingleQuote - (manyTill inline (try border <* notFollowedBy alphaNum)) + (manyTill (notFollowedBy newline >> inline) + (try border <* notFollowedBy alphaNum)) return $ construct $ if attr == nullAttr then body -- cgit v1.2.3