add space after markdown header markup

This commit is contained in:
luke
2021-09-22 11:37:12 +08:00
parent 1ef3b66db8
commit 457216a857

View File

@@ -10,7 +10,7 @@ function M.handle_markdown()
local results = {}
for line, value in ipairs(lines) do
if string.find(value, "^#+") then
if string.find(value, "^#+ ") then
if #results > 0 then
results[#results].selectionRange["end"].line = line - 1
results[#results].range["end"].line = line - 1