summaryrefslogtreecommitdiff
path: root/runtime/queries/markdown
Commit message (Collapse)AuthorAge
* inject language based on file extension & shebang (#3970)Timothy DeHerrera2023-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * inject language based on file extension Nodes can now be captured with "injection.filename". If this capture contains a valid file extension known to Helix, then the content will be highlighted as that language. * inject language by shebang Nodes can now be captured with "injection.shebang". If this capture contains a valid shebang line known to Helix, then the content will be highlighted as the language the shebang calls for. * add documentation for language injection * nix: fix highlights The `@` is now highlighted properly on either side of the function arg. Also, extending the phases with `buildPhase = prev.buildPhase + ''''` is now highlighted properly. Fix highlighting of `''$` style escapes (requires tree-sitter-nix bump) Fix `inherit` highlighting. * simplify injection_for_match Split out injection pair logic into its own method to make the overall flow easier to follow. Also transform the top-level function into a method on a HighlightConfiguration. * markdown: add shebang injection query
* Add theme keys for (un)checked markup list items (#6434)Erasin Wang2023-03-25
|
* Improve markdown highlights and add latex injection (#6100)Matthias Deiml2023-02-25
|
* Fix HTML injection within markdown (#5265)Michael Davis2022-12-23
| | | | | | | HTML nodes should be combined injections in the markdown block grammar. When nodes are together the highlighting works properly but when there is markdown content between HTML nodes like in a `<details>` tag, the highlighting of the closing tag breaks since tree-sitter-html looks for opening and closing tags.
* Update treesitter markdown (#4078)David2022-10-03
| | | | | * Update treesitter markdown * Update inline and add table injections
* Fix Markdown Metadata (#3400)Erasin2022-08-12
|
* Use split_parser branch for markdown grammar (#3108)Matthias Deiml2022-08-06
|
* markdown: limit raw block highlight to code fence contentMichael Davis2022-07-01
|
* markdown: highlight punctuationMichael Davis2022-07-01
|
* add tree-sitter-edoc (#2640)Michael Davis2022-06-02
| | | | | | | * add tree-sitter-edoc * fix escape character capture in markdown queries * add field negation operator "!" to tsq highlights
* fix Markdown list highlighting (#2401)ChrHorn2022-05-07
|
* Allow separate styles for markup headings (#1618)Alex2022-02-21
| | | | | * update markdown highlighting to use separate heading themes * remove markdown theme scopes in ui
* capture markdown link text as markup.link.text (#1456)Michael Davis2022-01-08
|
* Fix markdown code-block highlightingFlakebi2022-01-01
| | | | | Markdown code blocks should be highlighted as a single block, so set injection.include-children.
* Add link and quote queries for markdownGokul Soumya2021-12-19
| | | | | | | | | - Rename markup.underline.link to markup.link.url - Add markup.link.label - Add markup.quote (The constructor theme scope was missing from the docs, so unrelated to this commit).
* Add injections query for markdownBlaž Hrastnik2021-12-15
|
* Add markdown grammarBlaž Hrastnik2021-12-14
Fixes #215