-
-
Notifications
You must be signed in to change notification settings - Fork 855
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
Markdown missing header mark highlights #6260
Comments
Deliberate. The capture names and highlight groups were standardized, which meant that the markers are no longer given a separate capture. If you want them, revert to the latest tagged commit, or re-add them in you personal config. |
Why the difference between headers marks and e.g. list markers? |
Because 1. list markers don't get a special highlight group and 2. you don't typically highlight list entries, so only list markers need a highlight. |
OK. From my user point of view, this seems like a regression, but as you pointed out, I could re-add them in my personal config. Thanks for the explanation. |
It is a regression, but necessary (and justifiable) for maintainability. |
What is the long-term plan regarding this? Will some of the removed capture names (i.e. those that didn't get a replacement, like |
You are welcome to add your own queries. There is no plan to change this, either here or in Neovim. |
For those who want this feature, this should bring back those highlights. In the
|
Describe the bug
After #6232 markdown files don't have a header marker highlight. For example, at the
# Header 1
,Inspect
shows@markup.heading.1.markdown
for all the line including the#
marker and theHeader 1
content text.Before it shows
@markup.heading.1.marker.markdown
for the#
mark and@markup.heading.1.markdown
for the content.Screenshot:
To Reproduce
:TSEnable markdown
Expected behavior
Provide a highlight to differentiate the marker from the text content.
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
I'm doing the report from 0.9.5 but I've also tested in 0.10 nightly with the same results.
Edit: Improve the description
The text was updated successfully, but these errors were encountered: