Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/lua/memeposting.lua
2017-01-28 10:39:58 -05:00

17 lines
325 B
Lua

-- simple replacements demo
function span_text(str, class)
return string.format("<span class='%s'>%s</span>", class, str)
end
function wobble_text(str)
return span_text("wobble", str)
end
-- generate extra markup
function memeposting(prefix, body)
body = string.gsub(body, "<(%w+)>", wobble_text)
return body
end