summaryrefslogtreecommitdiff
path: root/script/provider/markdown.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/markdown.lua')
-rw-r--r--script/provider/markdown.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/markdown.lua b/script/provider/markdown.lua
index ceaedfdb..3b4a2be1 100644
--- a/script/provider/markdown.lua
+++ b/script/provider/markdown.lua
@@ -29,6 +29,9 @@ function mt:add(language, text)
end
self[#self+1] = text
else
+ if #self > 0 then
+ self[#self+1] = ''
+ end
self[#self+1] = ('```%s\n%s\n```'):format(language, text)
end