diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-07-13 19:22:41 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-07-13 19:22:41 -0700 |
commit | 71b4700669162ea904a78c80d4f236d4ca13303f (patch) | |
tree | 5db073413c2484adf3efd57a7277eebd686565c1 | |
parent | 0b23956d48682e93afc016a60d9c04696bb7a69a (diff) | |
download | pandoc-71b4700669162ea904a78c80d4f236d4ca13303f.tar.gz |
Made latex \section, \chapter parsers more forgiving of whitespace.
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 8d4f67edc..406809dfc 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -190,8 +190,11 @@ section = try $ do headerWithLevel :: Int -> GenParser Char ParserState Block headerWithLevel lev = try $ do + spaces optional (char '*') + spaces optional $ bracketedText '[' ']' -- alt title + spaces char '{' title' <- manyTill inline (char '}') spaces |