-
Notifications
You must be signed in to change notification settings - Fork 45
Checkboxes
MeanderingProgrammer edited this page Oct 17, 2024
·
7 revisions
Raw data being used:
# Checkboxes
- [ ] Unchecked
- [x] Checked
- [-] Todo
- [~] Custom
require('render-markdown').setup({
checkbox = {
enabled = true,
position = 'inline',
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' },
},
})
require('render-markdown').setup({
checkbox = {
position = 'overlay',
},
})