-
Notifications
You must be signed in to change notification settings - Fork 49
help: How do I make setext headers go away? #381
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
You can't change the definition of a Looking at the common mark spec the implementation seems to be correct, even in github you'll see that the text:
Renders as a setext header:
What I can do is add a way to disable rendering |
Yes, that'd be great! |
## Details Request: #381 Adds `heading.atx` and `heading.setext` boolean options. These let you disable rendering for a specific subset of heading types rather than an all or nothing. By default both remain enabled. Mostly helpful for `setext` headings since their syntax can overlap with nested lists.
Added the feature, can now disable setext headings with |
It did remove the foreground, background, and cursor jump, which is awesome. However, it is still being highlighted as a This is, again, not related to the plugin per se. Is this feasible to change (as an option through the plugin, similar to rendering setext)? 2025-04-01.00-05-44.mp42025-04-01.00-34-01.mp4Both recordings were made with render-markdown.nvim disabled. This is also the case when I did not install Again, is it possible to change this (remove the text highlight) without messing up the standard atx headings?" |
It is not. The plugin not doing something it is doing is easy, so I added the option. Highlighting on the other hand is completely unrelated to this plugin and just comes from treesitter. Neovim itself comes bundled with the In order to accomplish what you want, at least as far as I know, the only way is to override the highlights completely in your own configuration. So create a file at: Set the contents to be a copy of the So in this case you would end up with:
While this will remove highlighting for |
Neovim version (nvim -v)
0.10.0
Neovim distribution
N/A
Description
Relevant configuration:
This happens when I try to write nested bullet points:
2025-03-28.17-01-15.mp4
Source just in case:
I couldn't successfully change / find anything related in the available configuration.
How do I turn this off? I'm really only interested in the
-
character not triggering it. Other characters are fine. Can I change the character that triggers it or turn this rendering off completely somehow?The text was updated successfully, but these errors were encountered: