diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-01-20 02:00:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-20 19:00:37 +0900 |
| commit | 88261266deca304a161ba8e5445f65722fdf2037 (patch) | |
| tree | b4da3c8e61223f4efece622a9a9dffd5453ee97f /queries/markdown_inline | |
| parent | fix(rust): add `const_item` to folds (diff) | |
| download | nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.tar nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.tar.gz nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.tar.bz2 nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.tar.lz nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.tar.xz nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.tar.zst nvim-treesitter-88261266deca304a161ba8e5445f65722fdf2037.zip | |
fix(markdown_inline): prioritize link URI (#5935)
Diffstat (limited to 'queries/markdown_inline')
| -rw-r--r-- | queries/markdown_inline/highlights.scm | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/queries/markdown_inline/highlights.scm b/queries/markdown_inline/highlights.scm index d9f48296d..6c114b402 100644 --- a/queries/markdown_inline/highlights.scm +++ b/queries/markdown_inline/highlights.scm @@ -7,22 +7,10 @@ (strikethrough) @markup.strikethrough -[ - (link_destination) - (uri_autolink) -] @markup.link.url @nospell - (shortcut_link (link_text) @nospell) [ - (link_label) - (link_text) - (link_title) - (image_description) -] @markup.link.label - -[ (backslash_escape) (hard_line_break) ] @string.escape @@ -82,6 +70,18 @@ ] @markup.link (#set! conceal "")) +[ + (link_destination) + (uri_autolink) +] @markup.link.url @nospell + +[ + (link_label) + (link_text) + (link_title) + (image_description) +] @markup.link.label + ; Replace common HTML entities. ((entity_reference) @character.special (#eq? @character.special " ") |
