Closed Divyanshg01 closed 1 week ago
Not a bug, just the default behavior.
We use the highlight groups RenderMarkdownH1Bg
.. RenderMarkdownH6Bg
for the backgrounds.
In the colors section of the README: https://github.com/MeanderingProgrammer/render-markdown.nvim?tab=readme-ov-file#colors, if no values are defined by your color scheme for these highlight groups then RenderMarkdownH3Bg
.. RenderMarkdownH6Bg
all link to DiffDelete
.
You can either:
tokyonight
, catppuccin
, and several othersRenderMarkdownH3Bg
.. RenderMarkdownH6Bg
as whatever colors you likeProvide different highlights for the backgrounds: https://github.com/MeanderingProgrammer/render-markdown.nvim?tab=readme-ov-file#headings
require('render-markdown').setup({
heading = {
backgrounds = { 'highlight_1', 'highlight_2', 'highlight_3', 'highlight_4', 'highlight_5', 'highlight_6' },
},
})
Neovim version (nvim -v)
0.10.1
Operating system
Arch Linux
Terminal emulator / GUI
Kitty terminal with zsh
Describe the bug
When I load the default config and open the markdown files, all the heading except level 1,2 are in red color I don't know why it is
Expected behavior
It should be of different colors and the code blocks are also of different color(black) instead they should be transparent
Healthcheck output
============================================================================== render-markdown: require("render-markdown.health").check()
render-markdown.nvim [version] ~
render-markdown.nvim [configuration] ~
render-markdown.nvim [nvim-treesitter] ~
render-markdown.nvim [executables] ~
render-markdown.nvim [conflicts] ~
Plugin configuration
Plugin error log
No error log
Confirmations
Additional information
I am using it with obsidian.nvim but I don't think this behaviour is caused by it still I am providing my obisdian.nvim config