Skip to content

Commit b35504a

Browse files
Minor spelling and formating
1 parent b41bce8 commit b35504a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ require('render-markdown').setup({
965965
position = 'inline',
966966
unchecked = {
967967
-- Replaces '[ ]' of 'task_list_marker_unchecked'
968-
raw = '[x]', -- Optionnal parameter. This can be used to replace variations of the checkbox such as with spaces ('[x] ', ' [x], etc.) or with one of the list char. (- [x], + [x] , * [x])
968+
raw = '[x]', -- Optionnal parameter. This can be used to replace variations of the checkbox such as with spaces ('[x] ', ' [x], etc.) or with one of the list markers. (- [x], + [x] , * [x])
969969
icon = '󰄱 ',
970970
-- Highlight for the unchecked icon
971971
highlight = 'RenderMarkdownUnchecked',
@@ -974,7 +974,7 @@ require('render-markdown').setup({
974974
},
975975
checked = {
976976
-- Replaces '[x]' of 'task_list_marker_checked'
977-
raw = '[ ]', -- Optionnal parameter. This can be used to replace variations of the checkbox such as with spaces ('[ ] ', ' [ ], etc.) or with one of the list char. (- [ ], + [ ] , * [ ])
977+
raw = '[ ]', -- Optionnal parameter. This can be used to replace variations of the checkbox such as with spaces ('[ ] ', ' [ ], etc.) or with one of the list marker. (- [ ], + [ ] , * [ ])
978978
icon = '󰱒 ',
979979
-- Highlight for the checked icon
980980
highlight = 'RenderMarkdownChecked',

lua/render-markdown/integ/source.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ local function get_list_prefix(buf, row)
66
local line = vim.fn.getline(row + 1) -- Get the current line (rows are 1-indexed in Vim)
77
local prev_line = vim.fn.getline(row)
88
local first_non_white = string.match(line, '^%s*(.)') -- Find first non-white character
9-
-- List of possible markers to check
109

1110
local first_non_white_prev = string.match(prev_line, '^%s*(.)')
1211
local list_prefix = ''
12+
-- List of possible markers to check
1313
local markers = { '-', '*', '+' }
1414
if vim.tbl_contains(markers, first_non_white) or first_non_white == '[' then
1515
list_prefix = ''
@@ -65,6 +65,7 @@ function M.items(buf, row, col)
6565
items,
6666
M.item(list_prefix .. (checkbox.unchecked.raw or '[ ]'), checkbox.unchecked.icon, 'unchecked')
6767
)
68+
6869
table.insert(items, M.item(list_prefix .. (checkbox.checked.raw or '[x]'), checkbox.checked.icon, 'checked'))
6970

7071
for name, component in pairs(checkbox.custom) do

0 commit comments

Comments
 (0)