diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-05-15 16:36:13 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-05-15 16:46:02 +0200 |
commit | 0794862aacdb5d28616dadc3d681a63c36251212 (patch) | |
tree | ad652f34f1da9855ba1f5c470ff6eb5a85db884a /src | |
parent | 46baf6659dad59d1d633894b4db886a2e1311d43 (diff) | |
download | pandoc-0794862aacdb5d28616dadc3d681a63c36251212.tar.gz |
HTML writer: parse `<header>` as a Div
HTML5 `<header>` elements are treated like `<div>` elements.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/HTML.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index b305de7b5..0a9e4addf 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -205,6 +205,7 @@ block = ((do | otherwise -> pDiv "section" -> pDiv + "header" -> pDiv "main" -> pDiv "figure" -> pFigure "iframe" -> pIframe @@ -404,6 +405,7 @@ pLineBlock = try $ do isDivLike :: Text -> Bool isDivLike "div" = True isDivLike "section" = True +isDivLike "header" = True isDivLike "main" = True isDivLike _ = False |