From f2f35224f614199ac5fc26be84bba093a92ba984 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 15 Sep 2015 09:27:45 -0700 Subject: sample.lua - define CaptionedImage, add newline at end. Cloess #2393. --- data/sample.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/sample.lua b/data/sample.lua index f5c17839e..fa265d04d 100644 --- a/data/sample.lua +++ b/data/sample.lua @@ -84,7 +84,7 @@ function Doc(body, metadata, variables) end add('') end - return table.concat(buffer,'\n') + return table.concat(buffer,'\n') .. '\n' end -- The functions that follow render corresponding pandoc elements. @@ -251,6 +251,12 @@ function html_align(align) end end +function CaptionedImage(src, tit, caption) + return '
\n\n' .. + '

' .. caption .. '

\n
' +end + -- Caption is a string, aligns is an array of strings, -- widths is an array of floats, headers is an array of -- strings, rows is an array of arrays of strings. -- cgit v1.2.3