diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index 62951be..637ac70 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -25,6 +25,8 @@ function pre_text(str) str = str:gsub("\\", "\") str = str:gsub("/", "/") str = str:gsub("%]", "]") + str = str:gsub("=", "=") + str = str:gsub("@", "@") return span_text("code", str:gsub("%|", "|")) end @@ -33,6 +35,8 @@ function memeposting(body, prefix) body = string.gsub(body, "`(.-)`", pre_text) body = string.gsub(body, "%(%(%((.-)%)%)%)", function(str) return string.format("