@@ -169,9 +169,10 @@ parseHtmlContent :: PandocMonad m
169169 => String -> MuseParser m (Attr, F Blocks)
170170parseHtmlContent tag = try $ do
171171 many spaceChar
172+ pos <- getPosition
172173 (TagOpen _ attr, _) <- htmlTag (~== TagOpen tag [])
173174 manyTill spaceChar eol
174− content <- parseBlocksTill (try $ manyTill spaceChar endtag)
175+ content <- parseBlocksTill (try $ ((count (sourceColumn pos - 1) spaceChar) >> endtag))
175176 manyTill spaceChar eol -- closing tag must be followed by optional whitespace and newline
176177 return (htmlAttrToPandoc attr, content)
177178 where