diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-07-12 17:03:01 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-07-12 17:03:01 -0700 |
commit | 6d30d3e0b3b4a7005018179ff1098dd16eeb2652 (patch) | |
tree | 4b8424cc08ca1bfd4bd0074691239d8b53eba1f9 /src/Text | |
parent | c497d79dfddad38d46099734efbc7cd9bbcd7e7b (diff) | |
download | pandoc-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.hs | 1 |
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) |