diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-05 12:05:04 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-05 12:05:04 -0800 |
commit | c3071ff6e9ceb26c1a90c005ad4bb6661679ca40 (patch) | |
tree | eb53823d9f437c8cc4f7058cabed15ecf7dfb1b1 /src/Text/Pandoc | |
parent | b26247a4a833fc7871b3d6b9cdacda0a6672253f (diff) | |
download | pandoc-c3071ff6e9ceb26c1a90c005ad4bb6661679ca40.tar.gz |
LaTeX reader: Don't handle \index separately.
Instead, just put it in list of commands to ignore.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 03679bb1d..cdac5b2a5 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -478,7 +478,6 @@ inline = choice [ str , accentedChar , nonbreakingSpace , cite - , index , specialChar , rawLaTeXInline' , escapedChar @@ -815,12 +814,6 @@ footnote = try $ do cite :: GenParser Char ParserState Inline cite = simpleCite <|> complexNatbibCites -index :: GenParser Char ParserState Inline -index = try $ do - (name, _, _) <- command - guard $ name == "index" - return $ Str "" - simpleCiteArgs :: GenParser Char ParserState [Citation] simpleCiteArgs = try $ do first <- optionMaybe $ (char '[') >> manyTill inline (char ']') |