-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Broken syntax highlighting in Markdown #3849
Comments
Updating the version of tree-sitter-markdown in languages.toml to the latest commit helps with this issue, so that might tide things over for now. It doesn't completely fix it though, there's some weirdness caused by escape sequences for example, so more work is still needed there. |
@Chickenkeeper Thanks for your help! Updating to the latest commit does improve things, but I am not sure if the queries also need updating? I don't know much about Treesitter. I have opened an issue tree-sitter-grammars/tree-sitter-markdown#62, please add any more |
@David-Else Ha, will do. I've looked at the queries and nothing immediately stood out, but it might take a bit of experimenting. |
Updating to the latest commit helped, because I added support for tables. The queries should be fine. You would only need to change them if you wanted some special highlighting for tables. |
Other problems (like thos discussed in tree-sitter-grammars/tree-sitter-markdown#62) might be problems with the parser, so feel free to report them there. |
I added a nice new fix so most of what is talked about here works now. I'll make a PR to update the grammar. |
Brilliant, it is fixed :) |
Summary
@MDeiml In the
keymap.md
file you can see the markdown highlighting is broken, is seems fine in NeovimHelix
Neovim
Reproduction Steps
Load https://raw.githubusercontent.com/helix-editor/helix/master/book/src/keymap.md to see the problem
Helix log
n/a
Platform
Linux
Terminal Emulator
Kitty
Helix Version
helix 22.08.1 (b5be72b) < latest today
The text was updated successfully, but these errors were encountered: