summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-05 12:05:04 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-05 12:05:04 -0800
commitc3071ff6e9ceb26c1a90c005ad4bb6661679ca40 (patch)
treeeb53823d9f437c8cc4f7058cabed15ecf7dfb1b1 /src/Text/Pandoc/Readers
parentb26247a4a833fc7871b3d6b9cdacda0a6672253f (diff)
LaTeX reader: Don't handle \index separately.
Instead, just put it in list of commands to ignore.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs7
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 ']')