The module pandoc.utils
contains a function stringify
which will convert an element into a list:
function Span(el)
print(pandoc.utils.stringify(el))
end
This will print It’s so easy!
(note the effect of pandoc's smart handling of apostrophes: a closing curly quote has replaced the straight apostrophe '
).
Consult the Lua filters docs for more info on how to use them.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…