aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-05-19 10:44:11 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-05-19 10:44:11 -0700
commit0958f2f5d0f8f3d596b2ff32391b4b22d345cbe4 (patch)
treebca3e01fbc46edffbf19e87d16d5d92dff1c4c77 /tests/Tests
parent847167804aada52bc1af32920c83582b426ef9eb (diff)
parent16e233475ae93d7113ef049dec272d23667fc493 (diff)
downloadpandoc-0958f2f5d0f8f3d596b2ff32391b4b22d345cbe4.tar.gz
Merge pull request #2927 from tarleb/org-attr-html
Org reader support for ATTR_HTML statements
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Readers/Org.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index fa0c57f71..666d93a51 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -667,6 +667,17 @@ tests =
para (image "the-red-queen.jpg" "fig:redqueen"
"Used as a metapher in evolutionary biology.")
+ , "Figure with HTML attributes" =:
+ unlines [ "#+CAPTION: mah brain just explodid"
+ , "#+NAME: lambdacat"
+ , "#+ATTR_HTML: :style color: blue :role button"
+ , "[[lambdacat.jpg]]"
+ ] =?>
+ let kv = [("style", "color: blue"), ("role", "button")]
+ name = "fig:lambdacat"
+ caption = "mah brain just explodid"
+ in para (imageWith (mempty, mempty, kv) "lambdacat.jpg" name caption)
+
, "Footnote" =:
unlines [ "A footnote[1]"
, ""