-
Notifications
You must be signed in to change notification settings - Fork 49
bug: #93
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
What is your config and what is the raw markdown text in your screenshot. |
My config (the modified bullet chars are single-character nerd font icons):
The raw markdown text:
|
Same problem here: nvim v0.10.0 render-markdown: require("render-markdown.health").check() markdown.nvim [neovim version] ~
markdown.nvim [configuration] ~
markdown.nvim [nvim-treesitter] ~
markdown.nvim [executables] ~
|
Interesting, I'm not quite able to reproduce this. I think the end result relies a lot on your font configuration for Kitty, but I do get something like it if I switch my font to JetBrainsMono Nerd Font. I'm assuming the config you sent me is slightly off? The first and second values in the icons array appear swapped compared to the screenshot. Due to just the vast number of ways different fonts, terminal emulators and associated configs can render text there is no great fix. In this case for some reason the icons appear shifted to the right, in other cases if there is space around an icon the terminal can make the icon larger to fill the space. Right shifting seems like the worse of these, but I can't begin debugging what exactly is going here without spending just too much time. I have done so for my own terminal configuration before. Instead I provided a mediocre patch to allow bullets to add right padding here: 2c8be07. Please update and set a value like: It will have edge cases as there is no way to tell 100% how your terminal will show a particular icon and therefore how much space it will take up but it should at lease improve things. |
@eofferma your issue maybe related. I don't think it is, but this actually could also account for the right shifting seen by @zenoli. Yours looks like you are concealing some part of a checkbox in your own config, which isn't playing nicely with this plugin. Do you have any custom I quick way to check is if you create a markdown file with a single checkbox:
Disable this plugin entirely. Set the conceallevel to 3:
If something is hidden something in your config or another plugin is hiding it. Depending on what's going on I can potentially handle it better on my side as well, LMK what you find! |
Do either of you potentially use |
@MeanderingProgrammer, thank you! It was the ui = {
enable = false,
} On the other hand, I tried the Thanks! |
Awesome, I'll add a note to the README. Since this has come up a few times I decided to see if there would be interest in using this plugin as the UI for |
Yes, I think I changed them after I made the screenshot to further debug the issue, to rule out that this was having an impact. Sorry for the confusion.
@MeanderingProgrammer Wow, that an incredibly quick response and patch for my issue! Thank you very much :-) |
The original issue can be fixed using the workaround of manually configuring the
|
@MeanderingProgrammer I just noticed that my original issue was most likely due to an outdated treesitter version. I no longer rely on the |
Ah, that makes sense and is a good thing for me to be aware of in the future :) The |
Neovim version (nvim -v)
0.10.0
Operating system
MacOS
Terminal emulator / GUI
Kitty
Describe the bug
There is no space between bullet points and text:

Expected behavior
There should be a space between the bullet point and the text
Healthcheck output (:checkhealth render-markdown)
Additional information
The DEBUG LOG output of the test markdown from the screenshot is:
~/.local/state/nvim/render-markdown.log
The text was updated successfully, but these errors were encountered: