parent
6dcfa7e07b
commit
f2f35224f6
1 changed files with 7 additions and 1 deletions
|
@ -84,7 +84,7 @@ function Doc(body, metadata, variables)
|
||||||
end
|
end
|
||||||
add('</ol>')
|
add('</ol>')
|
||||||
end
|
end
|
||||||
return table.concat(buffer,'\n')
|
return table.concat(buffer,'\n') .. '\n'
|
||||||
end
|
end
|
||||||
|
|
||||||
-- The functions that follow render corresponding pandoc elements.
|
-- The functions that follow render corresponding pandoc elements.
|
||||||
|
@ -251,6 +251,12 @@ function html_align(align)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function CaptionedImage(src, tit, caption)
|
||||||
|
return '<div class="figure">\n<img src="' .. escape(src,true) ..
|
||||||
|
'" title="' .. escape(tit,true) .. '"/>\n' ..
|
||||||
|
'<p class="caption">' .. caption .. '</p>\n</div>'
|
||||||
|
end
|
||||||
|
|
||||||
-- Caption is a string, aligns is an array of strings,
|
-- Caption is a string, aligns is an array of strings,
|
||||||
-- widths is an array of floats, headers is an array of
|
-- widths is an array of floats, headers is an array of
|
||||||
-- strings, rows is an array of arrays of strings.
|
-- strings, rows is an array of arrays of strings.
|
||||||
|
|
Loading…
Add table
Reference in a new issue