@@ -148,7 +148,7 @@ where
148148
149149import Text.Pandoc.Definition
150150import Text.Pandoc.Options
151−import Text.Pandoc.Builder (Blocks, Inlines)
151+import Text.Pandoc.Builder (Blocks, Inlines, rawBlock)
152152import qualified Text.Pandoc.UTF8 as UTF8 (putStrLn)
153153import Text.Parsec
154154import Text.Parsec.Pos (newPos)
@@ -1007,7 +1007,7 @@ nested p = do
10071007--
10081008
10091009-- | Parse a \newcommand or \renewcommand macro definition.
1010−macro :: Parser [Char] ParserState Block
1010+macro :: Parser [Char] ParserState Blocks
10111011macro = do
10121012 apply <- getOption readerApplyMacros
10131013 inp <- getInput
@@ -1018,8 +1018,8 @@ macro = do
10181018 then do
10191019 updateState $ \st ->
10201020 st { stateMacros = ms ++ stateMacros st }
1021− return Null
1022− else return $ RawBlock "latex" def'
1021+ return mempty
1022+ else return $ rawBlock "latex" def'
10231023
10241024-- | Apply current macros to string.
10251025applyMacros' :: String -> Parser [Char] ParserState String