-
Notifications
You must be signed in to change notification settings - Fork 49
bug: Headlines Not Displaying Correctly in Quarto Files (.qmd) #49
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
I think I know what's going on here. This plugin assumes default conceal behavior in markdown files. Currently the heading prefix Do you have any custom highlights that set conceal on |
Strange, it does seem like this should also have been an issue on markdown files. Will work on handling these cases better in general, assuming concealing behavior is going to lead to inconsistencies, though I'm not sure of a better way to handle it at the moment. Glad it's working now! |
I did push a fix for this here 5ce3566, if you want to re-enable the concealing behavior and are using neovim >= |
Edit: with the pushed fix above (and neovim 0.10.0), everything does work wonderfully. Leaving this small fix here for those that still have issues. Just wanted to chime in that I seem to have stumbled upon the same (I think?) issue with headlines getting cut off exactly like for @bassamsdata in the original post. However, I have both The only way I have found to get rid of this behaviour for now is to set a lower conceallevel for this plugin through the setup function, e.g. (using the lazy.nvim opts key): opts = {
file_types = { "markdown", "quarto" },
win_options = {
conceallevel = {
rendered = 2,
},
},
} Anyway, for now this works reasonably well for my purposes and maybe it can help somebody else out that stumbles into the issue. Thanks you for the amazing plugin! |
For whatever it's worth, I think there may be more going on with the highlighting for quarto: quarto-dev/quarto-nvim#25 It looks light there is weirdness going on with highlighting in Quarto already, possibly because of how it integrates pandoc and other stuff. The maintainer is very responsive. |
Neovim version (nvim -v)
0.10.0
Operating system
MacOS
Terminal emulator / GUI
WezTerm
Describe the bug
Headlines don't appear correctly in Quarto files (.qmd). The more nested the headlines are, the more letters are hidden from the beginning of the line. The video below illustrates the issue clearly.

Expected behavior
show the headlines correctly.
to reproduce:
touch testQuarto.qmd
Healthcheck output (:checkhealth render-markdown)
render-markdown: require("render-markdown.health").check()
markdown.nvim [nvim-treesitter] ~
markdown.nvim [executables] ~
markdown.nvim [configuration] ~
Additional information
here is my config:
Thank you
The text was updated successfully, but these errors were encountered: