git.iko.soy/typeable/pandoc
on master help sign in
Textile reader: don't allow inline formatting to extend over newline.

This matches behavior of RedCarpet, avoids some ugly bugs, and improves performance.

commitdd78dd6d1beb860416c1c9114064d2e7bc1ff86a authorJohn MacFarlane <jgm@berkeley.edu> dateFri 8 Aug 2014, 12:15 (12 years ago) parente5fb97f
1 file changed+2−1
src/Text/Pandoc/Readers/Textile.hs+2−1
src/Text/Pandoc/Readers/Textile.hs+2−1
@@ -616,7 +616,8 @@ simpleInline border construct = try $ do
616616 attr <- attributes
617617 body <- trimInlines . mconcat <$>
618618 withQuoteContext InSingleQuote
619− (manyTill inline (try border <* notFollowedBy alphaNum))
619+ (manyTill (notFollowedBy newline >> inline)
620+ (try border <* notFollowedBy alphaNum))
620621 return $ construct $
621622 if attr == nullAttr
622623 then body