Skip to content

Commit

Permalink
improve markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jan 31, 2023
1 parent f3a4da2 commit b562e86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/provider/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ function mt:string(nl)
elseif obj.type == 'emptyline' then
if #lines > 0
and lines[#lines] ~= '' then
if language ~= 'md' then
language = 'md'
lines[#lines+1] = '```'
end
lines[#lines+1] = ''
end
elseif obj.type == 'markdown' then
Expand Down

0 comments on commit b562e86

Please sign in to comment.