Archived
1
0
This commit is contained in:
Jeff Becker
2017-01-28 11:29:57 -05:00
parent baf6e29473
commit 1d20cb3142
5 changed files with 17 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
-- simple replacements demo
function span_text(str, class)
return string.format("<span class='%s'>%s</span>", class, str)
function span_text(class, str)
return string.format("<div class='%s'>%s</div>", class, str)
end
function wobble_text(str)
@@ -11,6 +11,6 @@ end
-- generate extra markup
function memeposting(body, prefix)
body = string.gsub(body, "\[\[(%w+)\]\]", wobble_text)
body = string.gsub(body, "|(.*)|", wobble_text)
return body
end