git.iko.soy/typeable/pandoc
on master help sign in
Parse blanklines after macro definitions.
f870777John MacFarlane
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -876,7 +876,7 @@ table = multilineTable False <|> simpleTable True <|>
876-- | Parse a \newcommand or \renewcommand macro definition.
876-- | Parse a \newcommand or \renewcommand macro definition.
877macro :: GenParser Char ParserState Block
877macro :: GenParser Char ParserState Block
878macro = getState >>= guard . stateApplyMacros >>
878macro = getState >>= guard . stateApplyMacros >>
879− pMacroDefinition >>= addMacro >> return Null
879+ pMacroDefinition >>= addMacro >> blanklines >> return Null
880
880
881-- | Add a macro to the list of macros in state.
881-- | Add a macro to the list of macros in state.
882addMacro :: Macro -> GenParser Char ParserState ()
882addMacro :: Macro -> GenParser Char ParserState ()