@@ -717,10 +717,8 @@ rawLaTeXBlock = snd <$> try (withRaw (environment <|> blockCommand))
717717
718718rawLaTeXInline :: Parser [Char] ParserState Inline
719719rawLaTeXInline = do
720− (res, raw) <- withRaw inlineCommand
721− if res == mempty
722− then return (Str "")
723− else RawInline "latex" <$> (applyMacros' raw)
720+ raw <- (snd <$> withRaw inlineCommand) <|> (snd <$> withRaw blockCommand)
721+ RawInline "latex" <$> applyMacros' raw
724722
725723environments :: M.Map String (LP Blocks)
726724environments = M.fromList