-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Neovim version (nvim -v)
0.11.6
Neovim distribution
AstroNvim
Operating system
Windows11 and MacOS
Terminal emulator / GUI
Windows Terminal and Iterm2
Describe the bug
Code block backgrounds are not rendered correctly when the window is not selected. The background container of code blocks becomes invisible, and ghost artifact lines appear on the left side where code blocks are present.
This is the render when the window is active:

Expected behavior
Code block backgrounds should remain visible and without any weird artifact regardless of window focus state.
Healthcheck output
==============================================================================
render-markdown: 3 ⚠️
render-markdown.nvim [versions] ~
- ✅ OK neovim >= 0.11
- ✅ OK tree-sitter ABI: 15
- ✅ OK plugin: 8.12.0
render-markdown.nvim [configuration] ~
- ✅ OK valid
render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
- ✅ OK highlights: ~\AppData\Local\nvim-data\lazy\nvim-treesitter\queries\markdown\highlights.scm
- ✅ OK highlighter: enabled
render-markdown.nvim [tree-sitter markdown_inline] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
- ✅ OK highlights: ~\AppData\Local\nvim-data\lazy\nvim-treesitter\queries\markdown_inline\highlights.scm
render-markdown.nvim [tree-sitter html] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
render-markdown.nvim [tree-sitter latex] ~
- ⚠️ WARNING parser: not installed
- ADVICE:
- disable latex support to avoid this warning
- require('render-markdown').setup({ latex = { enabled = false } })
- ⚠️ WARNING ABI: unknown
- ADVICE:
- disable latex support to avoid this warning
- require('render-markdown').setup({ latex = { enabled = false } })
render-markdown.nvim [tree-sitter yaml] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
render-markdown.nvim [icons] ~
- ✅ OK using: nvim-web-devicons
render-markdown.nvim [latex] ~
- ⚠️ WARNING none installed: { "utftex", "latex2text" }
- ADVICE:
- disable latex support to avoid this warning
- require('render-markdown').setup({ latex = { enabled = false } })
render-markdown.nvim [conflicts] ~
- ✅ OK headlines: not installed
- ✅ OK markview: not installed
- ✅ OK obsidian: not installed
Plugin configuration
{
checkbox = {
checked = {
scope_highlight = "@markup.strikethrough"
}
},
code = {
border = "thick",
inline_left = "",
inline_right = "",
language_pad = 3,
left_margin = 1,
left_pad = 2,
min_width = 100,
position = "right",
right_pad = 2,
sign = false,
width = "block"
},
file_types = { "codecompanion", "markdown" },
heading = {
border = { true, false },
icons = { " ", " ", vim.NIL, vim.NIL, vim.NIL, vim.NIL },
left_margin = { 0.5, 0 },
left_pad = { 0.2, 0 },
min_width = { 0, 120 },
right_pad = { 0.2, 0 },
sign = false,
width = "block"
},
html = {
tag = {
buf = {
icon = " "
},
rules = {
icon = " "
}
}
},
indent = {
icon = ""
},
pipe_table = {
border = { "╭",
[3] = "╮",
[7] = "╰",
[9] = "╯"
},
preset = "round"
},
quote = {
repeat_linebreak = true
},
render_modes = { "i", "n", "c", "t" },
sign = {
enabled = false
}
}Plugin error log
NA
Confirmations
- I have updated this plugin to the latest version using my plugin manager
- I have updated all treesitter parsers (:TSUpdate)
- I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.
Additional information
Content of the screenshots
Debugging
Enable more verbose output:
bash
RUST_BACKTRACE=1 cargo run
Print debug info (values at `main.rs:154` already show u32 address):
rust
dbg!(&value); // Prints debug representation
println!("{:?}", value); // Use Debug trait
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
