HTML writer: Don't prefix epub: attributes with data-.
commit9752dcd61aa72a9e1e59bafcd55376ab1d275620
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 8 Aug 2018, 09:53 (8 years ago)
parent6728049
src/Text/Pandoc/Writers/HTML.hs+1
@@ -580,6 +580,7 @@ toAttrs kvs = do
580580 return $ map (\(x,y) ->
581581 customAttribute
582582 (fromString (if not html5 || x `Set.member` html5Attributes
583+ || "epub:" `isPrefixOf` x
583584 || "data-" `isPrefixOf` x
584585 then x
585586 else "data-" ++ x)) (toValue y)) kvs