git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: better handling of `\noindent` and `\greektext`.

Closes #1783.

commit9bf76fa5a256a20d03d251ec15f1785af9a7bb41 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 15 Dec 2014, 10:34 (12 years ago) parentc37db57
1 file changed+3−1
src/Text/Pandoc/Readers/LaTeX.hs+3−1
src/Text/Pandoc/Readers/LaTeX.hs+3−1
@@ -414,6 +414,8 @@ inlineCommands = M.fromList $
414414 , ("sim", lit "~")
415415 , ("label", unlessParseRaw >> (inBrackets <$> tok))
416416 , ("ref", unlessParseRaw >> (inBrackets <$> tok))
417+ , ("noindent", unlessParseRaw >> return mempty)
418+ , ("textgreek", tok)
417419 , ("(", mathInline $ manyTill anyChar (try $ string "\\)"))
418420 , ("[", mathDisplay $ manyTill anyChar (try $ string "\\]"))
419421 , ("ensuremath", mathInline $ braced)
@@ -545,7 +547,7 @@ inlineCommands = M.fromList $
545547 ] ++ map ignoreInlines
546548 -- these commands will be ignored unless --parse-raw is specified,
547549 -- in which case they will appear as raw latex blocks:
548− [ "noindent", "index" ]
550+ [ "index" ]
549551
550552mkImage :: String -> LP Inlines
551553mkImage src = do