zed-industries / extensions

Extensions for the Zed editor
915 stars 406 forks source link

HTML injections in Markdown are ignored #1588

Open taw00 opened 3 weeks ago

taw00 commented 3 weeks ago

Check for existing issues

Language

Markdown

Tree Sitter parser link

No response

Language server link

No response

Misc notes

Zed syntax highlights barebones markdown just fine. However, any HTML within the document is not syntax-highlighted. I talked to folks on the tree-sitter side, and they said this is an injection issue in Zed's deployment of tree-sitter.

And so, my request: fully implement the markdown syntax highlighting for zed. A person in tree-sitter chat sent me this link, if it is any help: https://github.com/tree-sitter-grammars/tree-sitter-markdown/blob/5cdc549ab8f461aff876c5be9741027189299cec/tree-sitter-markdown/queries/injections.scm#L6

Thanks. Love the editor. Cheers. -t (see also some commentary here on language injection: #484