@@ -148,7 +148,7 @@ where
149import Text.Pandoc.Definition
149import Text.Pandoc.Definition
150import Text.Pandoc.Options
150import Text.Pandoc.Options
151−import Text.Pandoc.Builder (Blocks, Inlines)
151+import Text.Pandoc.Builder (Blocks, Inlines, rawBlock)
152import qualified Text.Pandoc.UTF8 as UTF8 (putStrLn)
152import qualified Text.Pandoc.UTF8 as UTF8 (putStrLn)
153import Text.Parsec
153import Text.Parsec
154import Text.Parsec.Pos (newPos)
154import Text.Parsec.Pos (newPos)
@@ -1007,7 +1007,7 @@ nested p = do
1009-- | Parse a \newcommand or \renewcommand macro definition.
1009-- | Parse a \newcommand or \renewcommand macro definition.
1010−macro :: Parser [Char] ParserState Block
1010+macro :: Parser [Char] ParserState Blocks
1011macro = do
1011macro = do
1012 apply <- getOption readerApplyMacros
1012 apply <- getOption readerApplyMacros
1013 inp <- getInput
1013 inp <- getInput
@@ -1018,8 +1018,8 @@ macro = do
1019 updateState $ \st ->
1019 updateState $ \st ->
1020 st { stateMacros = ms ++ stateMacros st }
1020 st { stateMacros = ms ++ stateMacros st }
1021− return Null
1021+ return mempty
1022− else return $ RawBlock "latex" def'
1022+ else return $ rawBlock "latex" def'
1024-- | Apply current macros to string.
1024-- | Apply current macros to string.
1025applyMacros' :: String -> Parser [Char] ParserState String
1025applyMacros' :: String -> Parser [Char] ParserState String