Skip to content

Commit

Permalink
LaTeX reader: better handling of \noindent and \greektext.
Browse files Browse the repository at this point in the history
Closes #1783.
  • Loading branch information
jgm committed Dec 15, 2014
1 parent c37db57 commit 9bf76fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Readers/LaTeX.hs
Expand Up @@ -414,6 +414,8 @@ inlineCommands = M.fromList $
, ("sim", lit "~")
, ("label", unlessParseRaw >> (inBrackets <$> tok))
, ("ref", unlessParseRaw >> (inBrackets <$> tok))
, ("noindent", unlessParseRaw >> return mempty)
, ("textgreek", tok)
, ("(", mathInline $ manyTill anyChar (try $ string "\\)"))
, ("[", mathDisplay $ manyTill anyChar (try $ string "\\]"))
, ("ensuremath", mathInline $ braced)
Expand Down Expand Up @@ -545,7 +547,7 @@ inlineCommands = M.fromList $
] ++ map ignoreInlines
-- these commands will be ignored unless --parse-raw is specified,
-- in which case they will appear as raw latex blocks:
[ "noindent", "index" ]
[ "index" ]

mkImage :: String -> LP Inlines
mkImage src = do
Expand Down

0 comments on commit 9bf76fa

Please sign in to comment.