aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
Diffstat (limited to 'test/command')
-rw-r--r--test/command/custom-attributes.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/custom-attributes.html b/test/command/custom-attributes.html
new file mode 100644
index 000000000..67dccc1b8
--- /dev/null
+++ b/test/command/custom-attributes.html
@@ -0,0 +1,16 @@
+Custom attributes should automatically have data- added
+in HTML5:
+```
+% pandoc -t html5
+[hello]{foo="bar"}
+^D
+<span data-foo="bar">hello</span>
+```
+
+but not in HTML4:
+```
+% pandoc -t html4
+[hello]{foo="bar"}
+^D
+<span foo="bar">hello</span>
+```