@@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2828Special parser combinators for Pandoc readers.
2929-}
3030module Text.ParserCombinators.Pandoc (
31+ anyLine,
3132 many1Till,
3233 followedBy',
3334 notFollowedBy',
@@ -47,6 +48,10 @@ import Text.Pandoc.Definition
4748import Text.Pandoc.Shared
4849import Char ( toUpper, toLower )
4950
51+--- | Parse any line of text
52+anyLine :: GenParser Char st [Char]
53+anyLine = manyTill anyChar (newline <|> (do{eof; return '\n'}))
54+
5055-- | Parses a character and returns 'Null' (so that the parser can move on
5156-- if it gets stuck).
5257nullBlock :: GenParser Char st Block