This commit is contained in:
Morten Olsen
2021-11-07 23:13:52 +01:00
parent 9ee2b1c358
commit 98b3e48dcc

View File

@@ -4,7 +4,7 @@ local M = function(slack_token)
local token = slack_token local token = slack_token
local function post(receiver, content, opts) local function post(receiver, content, opts)
local text = content local text = content
if opts.format = "markdown" then if opts.format == "markdown" then
text = "```\n" .. text .. "```" text = "```\n" .. text .. "```"
end end
local body = { local body = {