Implement RawInline and RawBlock in sample lua custom writer.
Closes #2985.
This commit is contained in:
parent
58d60b1c85
commit
175cc2d44d
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue