aboutsummaryrefslogtreecommitdiff
path: root/data
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 /data
parent6cb4991f6b54d5853f11a01dc7faf048a647bee6 (diff)
downloadpandoc-a692bd28729f1c14b10bef1178ebf517b574cfaa.tar.gz
Custom writer: Pass attributes parameter to CaptionedImage.
Closes #2697.
Diffstat (limited to 'data')
-rw-r--r--data/sample.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/sample.lua b/data/sample.lua
index 0cb492392..574f378cc 100644
--- a/data/sample.lua
+++ b/data/sample.lua
@@ -255,7 +255,7 @@ function html_align(align)
end
end
-function CaptionedImage(src, tit, caption)
+function CaptionedImage(src, tit, caption, attr)
return '<div class="figure">\n<img src="' .. escape(src,true) ..
'" title="' .. escape(tit,true) .. '"/>\n' ..
'<p class="caption">' .. caption .. '</p>\n</div>'