aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-10-11 19:00:43 +0200
committerJohn MacFarlane <[email protected]>2025-10-11 19:01:03 +0200
commit001abd1d963963b82b0a4b79302284b2ffaf4345 (patch)
tree3137ef6b28c85ff49b6e3bf37093d5a2a1877e26
parent8a76a6fef1c76e163e86a9dd9e2b469dd4a05687 (diff)
HTML reader: allow blank space between open and close iframe.
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index 3c8c9d50b..ab006547c 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -514,6 +514,7 @@ pIframe :: PandocMonad m => TagParser m Blocks
pIframe = try $ do
guardDisabled Ext_raw_html
tag <- pSatisfy (tagOpen (=="iframe") (isJust . lookup "src"))
+ skipMany pBlank
pCloses "iframe" <|> eof
url <- canonicalizeUrl $ fromAttrib "src" tag
if T.null url