mirror of
https://github.com/tomoko-dev9/nntpchan.git
synced 2026-05-04 20:42:15 +02:00
17 lines
322 B
Lua
17 lines
322 B
Lua
|
|
-- simple replacements demo
|
|
|
|
function span_text(class, str)
|
|
return string.format("<div class='%s'>%s</div>", class, str)
|
|
end
|
|
|
|
function wobble_text(str)
|
|
return span_text("wobble", str)
|
|
end
|
|
|
|
-- generate extra markup
|
|
function memeposting(body, prefix)
|
|
body = string.gsub(body, "|(.+)|", wobble_text)
|
|
return body
|
|
end
|