aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-07-12 17:03:01 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-12 17:03:01 -0700
commit6d30d3e0b3b4a7005018179ff1098dd16eeb2652 (patch)
tree4b8424cc08ca1bfd4bd0074691239d8b53eba1f9 /src/Text
parentc497d79dfddad38d46099734efbc7cd9bbcd7e7b (diff)
downloadpandoc-6d30d3e0b3b4a7005018179ff1098dd16eeb2652.tar.gz
Pass through aria- attributes to HTML5.
Also document addition of data- prefix to unknown attributes. Closes #5646.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index ca44583ab..241479157 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -621,6 +621,7 @@ toAttrs kvs = do
if x `Set.member` (html5Attributes <> rdfaAttributes)
|| ':' `elem` x -- e.g. epub: namespace
|| "data-" `isPrefixOf` x
+ || "aria-" `isPrefixOf` x
then Just $ customAttribute (fromString x) (toValue y)
else Just $ customAttribute (fromString ("data-" ++ x))
(toValue y)