Implement RawInline and RawBlock in sample lua custom writer.

Closes #2985.
This commit is contained in:
John MacFarlane 2016-06-20 11:55:43 -07:00
parent 58d60b1c85
commit 175cc2d44d

View file

@ -170,6 +170,12 @@ function Span(s, attr)
return "<span" .. attributes(attr) .. ">" .. s .. "</span>"
end
function RawInline(format, str)
if format == "html" then
return str
end
end
function Cite(s, cs)
local ids = {}
for _,cit in ipairs(cs) do
@ -307,6 +313,12 @@ function Table(caption, aligns, widths, headers, rows)
return table.concat(buffer,'\n')
end
function RawBlock(format, str)
if format == "html" then
return str
end
end
function Div(s, attr)
return "<div" .. attributes(attr) .. ">\n" .. s .. "</div>"
end