Skip to content

Commit 11dd03e

Browse files
Renamed variable for clarity (last_marker -> list_prefix)
1 parent 0cdaf0c commit 11dd03e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/render-markdown/integ/source.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ function M.items(buf, row, col)
6969
table.insert(items, M.item(component.raw, component.rendered, nil))
7070
end
7171
elseif node:type() == 'list_item' or vim.tbl_contains(list_markers, node:type()) then
72-
local last_marker = M.list_prefix(row, node)
72+
local list_prefix = M.list_prefix(row, node)
7373
local checkbox = config.checkbox
74-
table.insert(items, M.item(last_marker .. '[ ] ', checkbox.unchecked.icon, 'unchecked'))
75-
table.insert(items, M.item(last_marker .. '[x] ', checkbox.checked.icon, 'checked'))
74+
table.insert(items, M.item(list_prefix .. '[ ] ', checkbox.unchecked.icon, 'unchecked'))
75+
table.insert(items, M.item(list_prefix .. '[x] ', checkbox.checked.icon, 'checked'))
7676
for name, component in pairs(checkbox.custom) do
7777
table.insert(items, M.item(list_prefix .. component.raw .. ' ', component.rendered, name))
7878
end

0 commit comments

Comments
 (0)