-
Notifications
You must be signed in to change notification settings - Fork 49
bug: The icon for the indented code block is missing #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide the raw markdown for your example? I am seeing the same when you put a slightly indented code block under another code block, but it actually works if I put it under a list. Am wondering if it has to do with how far indented things are. There's also a separate issue of indented_code_block, which this plugin does not support. |
Yeah, I found the same thing. I think I figured out the cause, not even sure why I even tried this, but it seems to be an interaction with indent-blankline.nvim. If I disable indent blank line then everything starts working as expected, no random cutoff of language. I'll try to see what's going on there. |
You are right, after I disabled |
# Details More info here: #60 When handling code blocks with leading spaces that lanuage gets left shifted. When this is combined with a plugin that adds information to leading spaces, such as indent blank lines, parts of the icon / language can be overlayed and therefore hidden. To fix this account for the leading spaces before placing icon above code blocks.
Ah it was a combination of indent blank lines overlaying the leading spaces as well as the code fence capturing the leading space. So when things got concealed they were left shifted then overlayed. Handling it is pretty straightforward pushed a fix here: 48083f8. LMK if it works for you as well! |
After taking a quick look at some of my notes, this should be able to display the icon normally. |
Sweet, closing the issue, feel free to re-open if you come across something. |
Neovim version (nvim -v)
0.10.0
Operating system
Windows11
Terminal emulator / GUI
WezTerm
Describe the bug
Unindented code blocks behave normally, but the icon for indented code blocks is missing, like:

source code is:

Expected behavior
The icon for indented code blocks should exist.
Healthcheck output (:checkhealth render-markdown)
Additional information
No response
The text was updated successfully, but these errors were encountered: