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