git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: allow `<body>` to close `<head>`.
commitcb7dd4469d420aea1a296079b7002aa5452fb481 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 4 Jun 2015, 10:23 (11 years ago) parentf47f53d
1 file changed+1
src/Text/Pandoc/Readers/HTML.hs+1
src/Text/Pandoc/Readers/HTML.hs+1
@@ -854,6 +854,7 @@ isCommentTag = tagComment (const True)
854854closes :: String -> String -> Bool
855855_ `closes` "body" = False
856856_ `closes` "html" = False
857+"body" `closes` "head" = True
857858"a" `closes` "a" = True
858859"li" `closes` "li" = True
859860"th" `closes` t | t `elem` ["th","td"] = True