LaTeX reader: don't treat \section as inline LaTeX.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1885 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2010-03-13 07:03:26 +00:00
parent df6274e3d7
commit 36a19e0f2e

View file

@ -772,7 +772,8 @@ footnote = try $ do
-- | Parse any LaTeX command and return it in a raw TeX inline element.
rawLaTeXInline :: GenParser Char ParserState Inline
rawLaTeXInline = try $ do
notFollowedBy' $ oneOfStrings ["\\begin", "\\end", "\\item", "\\ignore"]
notFollowedBy' $ oneOfStrings ["\\begin", "\\end", "\\item", "\\ignore",
"\\section"]
state <- getState
if stateParseRaw state
then do