-
Notifications
You must be signed in to change notification settings - Fork 49
Checkboxes
MeanderingProgrammer edited this page Mar 24, 2025
·
10 revisions
Raw data being used:
# Checkboxes
- [ ] Unchecked
- [x] Checked
- [-] Todo
- [~] Custom
require('render-markdown').setup({
checkbox = {
enabled = true,
render_modes = false,
right_pad = 1,
unchecked = {
icon = ' ',
highlight = 'RenderMarkdownUnchecked',
scope_highlight = nil,
},
checked = {
icon = ' ',
highlight = 'RenderMarkdownChecked',
scope_highlight = nil,
},
custom = {
todo = { raw = '[-]', rendered = ' ', highlight = 'RenderMarkdownTodo', scope_highlight = nil },
},
},
})
require('render-markdown').setup({
checkbox = {
unchecked = { icon = '✘ ' },
checked = { icon = '✔ ' },
custom = { todo = { rendered = '◯ ' } },
},
})
require('render-markdown').setup({
checkbox = {
custom = {
important = {
raw = '[~]',
rendered = ' ',
highlight = 'DiagnosticWarn',
},
},
},
})
require('render-markdown').setup({
checkbox = { checked = { scope_highlight = '@markup.strikethrough' } },
})