Skip to content

Commit b562e86

Browse files
committed
improve markdown
1 parent f3a4da2 commit b562e86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/provider/markdown.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ function mt:string(nl)
7171
elseif obj.type == 'emptyline' then
7272
if #lines > 0
7373
and lines[#lines] ~= '' then
74+
if language ~= 'md' then
75+
language = 'md'
76+
lines[#lines+1] = '```'
77+
end
7478
lines[#lines+1] = ''
7579
end
7680
elseif obj.type == 'markdown' then

0 commit comments

Comments
 (0)