mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
HTML writer: Don't prefix epub: attributes with data-.
This commit is contained in:
@@ -580,6 +580,7 @@ toAttrs kvs = do
|
||||
return $ map (\(x,y) ->
|
||||
customAttribute
|
||||
(fromString (if not html5 || x `Set.member` html5Attributes
|
||||
|| "epub:" `isPrefixOf` x
|
||||
|| "data-" `isPrefixOf` x
|
||||
then x
|
||||
else "data-" ++ x)) (toValue y)) kvs
|
||||
|
||||
Reference in New Issue
Block a user