aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-02-05 16:49:27 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-02-05 16:49:27 -0800
commita692bd28729f1c14b10bef1178ebf517b574cfaa (patch)
treeb928147713043c2baa3819629fece9601e6ad229 /src
parent6cb4991f6b54d5853f11a01dc7faf048a647bee6 (diff)
downloadpandoc-a692bd28729f1c14b10bef1178ebf517b574cfaa.tar.gz
Custom writer: Pass attributes parameter to CaptionedImage.
Closes #2697.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Custom.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs
index 9671fc05b..d69eaaa64 100644
--- a/src/Text/Pandoc/Writers/Custom.hs
+++ b/src/Text/Pandoc/Writers/Custom.hs
@@ -222,8 +222,8 @@ blockToCustom _ Null = return ""
blockToCustom lua (Plain inlines) = callfunc lua "Plain" inlines
-blockToCustom lua (Para [Image _ txt (src,tit)]) =
- callfunc lua "CaptionedImage" src tit txt
+blockToCustom lua (Para [Image attr txt (src,tit)]) =
+ callfunc lua "CaptionedImage" src tit txt (attrToMap attr)
blockToCustom lua (Para inlines) = callfunc lua "Para" inlines