Closed Lau-San closed 1 month ago
Update: it seems the problem only happens when trying to configure [-]
. I changed it to [c]
and now it works, but does that mean that [-]
is not configurable?
Weirly enough, when configuring [-]
it seemed to work SOMETIMES. Like I would open nvim and then a markdown file, and it would look fine, but after closing neovim and opening it again, then opening the same file, suddenly the icon looks wrong again. It just wasn't consistent, and more often than not, it would have the wrong icon. Surely that's not supposed to happen?
Due to the default value of checkboxes: https://github.com/MeanderingProgrammer/render-markdown.nvim?tab=readme-ov-file#checkboxes
custom = {
todo = { raw = '[-]', rendered = ' ', highlight = 'RenderMarkdownTodo' },
}
Since the [-]
symbol is used twice, the one that gets selected will be random since iterating through a table does not guarantee order.
Any of these solutions will work:
raw
value of todo
to avoid it clashing: custom = { todo = { raw = '[SOME_VALUE]' } }
raw
value for cancelled
todo
instead of cancelled
and overwrite the defaults: custom = { todo = { rendered = ' ', highlight = 'DiagnosticUnnecessary' } }
Neovim version (nvim -v)
0.10.1
Operating system
Linux
Terminal emulator / GUI
Kitty
Describe the bug
In the config, I setup checkbox config like this:
I've been using the plugin without issues and almos all of these checkboxes work as expected, except
cancelled
:As you can see, all tasks are rendered with the icons I specified, except the last one.
Expected behavior
The last task should've rendered like this (I pasted the icon directly from the config to demonstrate):
Healthcheck output
Plugin configuration
Plugin error log
N/A
Confirmations
Additional information
I thought it was a problem with my Kitty fonts config, but I checked and all codepoints are configured based on the official Nerd Fonts wiki and I have the last version. In any case, the icon clearly works as I pasted it in the config myself, it only shows a different icon when rendering the tasks in markdown.
I also have obsidian.nvim plugin, but I disabled it's markdown rendering features so it doesn't conflict. I don't even have custom checkboxes configured there and as you can see, all other custom checkboxes from the render-markdown config work fine.