git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: Don't handle \index separately.

Instead, just put it in list of commands to ignore.

commitc3071ff6e9ceb26c1a90c005ad4bb6661679ca40 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 5 Jan 2011, 12:05 (16 years ago) parentb26247a
1 file changed−7
src/Text/Pandoc/Readers/LaTeX.hs−7
src/Text/Pandoc/Readers/LaTeX.hs−7
@@ -478,7 +478,6 @@ inline = choice [ str
478478 , accentedChar
479479 , nonbreakingSpace
480480 , cite
481− , index
482481 , specialChar
483482 , rawLaTeXInline'
484483 , escapedChar
@@ -815,12 +814,6 @@ footnote = try $ do
815814cite :: GenParser Char ParserState Inline
816815cite = simpleCite <|> complexNatbibCites
817816
818−index :: GenParser Char ParserState Inline
819−index = try $ do
820− (name, _, _) <- command
821− guard $ name == "index"
822− return $ Str ""
823−
824817simpleCiteArgs :: GenParser Char ParserState [Citation]
825818simpleCiteArgs = try $ do
826819 first <- optionMaybe $ (char '[') >> manyTill inline (char ']')