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:
parent
df6274e3d7
commit
36a19e0f2e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue