git.iko.soy/typeable/pandoc
on master help sign in
Implement RawInline and RawBlock in sample lua custom writer.

Closes #2985.

commit175cc2d44dab936e9245fbeb9cc30478359a97c7 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 20 Jun 2016, 11:55 (10 years ago) parent58d60b1
1 file changed+12
data/sample.lua+12
data/sample.lua+12
@@ -170,6 +170,12 @@ function Span(s, attr)
170170 return "<span" .. attributes(attr) .. ">" .. s .. "</span>"
171171end
172172
173+function RawInline(format, str)
174+ if format == "html" then
175+ return str
176+ end
177+end
178+
173179function Cite(s, cs)
174180 local ids = {}
175181 for _,cit in ipairs(cs) do
@@ -307,6 +313,12 @@ function Table(caption, aligns, widths, headers, rows)
307313 return table.concat(buffer,'\n')
308314end
309315
316+function RawBlock(format, str)
317+ if format == "html" then
318+ return str
319+ end
320+end
321+
310322function Div(s, attr)
311323 return "<div" .. attributes(attr) .. ">\n" .. s .. "</div>"
312324end