<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/queries/markdown_inline, branch fix/lua</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/markdown_inline?h=fix%2Flua</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/markdown_inline?h=fix%2Flua'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2025-05-12T16:43:40Z</updated>
<entry>
<title>feat!: drop modules, general refactor and cleanup</title>
<updated>2025-05-12T16:43:40Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-06-12T15:54:30Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=692b051b09935653befdb8f7ba8afdb640adf17b'/>
<id>urn:sha1:692b051b09935653befdb8f7ba8afdb640adf17b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(markdown): don't set link metadata twice</title>
<updated>2024-09-28T17:02:26Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-09-28T16:45:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=36b78d112bddd69a05e24679241962e29e494d9e'/>
<id>urn:sha1:36b78d112bddd69a05e24679241962e29e494d9e</id>
<content type='text'>
Otherwise the same link will be opened twice when the cursor is on the
link text itself.
</content>
</entry>
<entry>
<title>fix(markdown): broader link recognition</title>
<updated>2024-09-20T19:35:08Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-09-20T19:11:21Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=b8ad0473f4d5d7b59e17a67ad0b68711b0232486'/>
<id>urn:sha1:b8ad0473f4d5d7b59e17a67ad0b68711b0232486</id>
<content type='text'>
**Problem:** Neovim's `gx` will not work when the cursor is on the first
`[` of an inline Markdown link.

**Solution:** Set the `url` metadata property on the link parent node,
rather than just the link label node
</content>
</entry>
<entry>
<title>feat(markdown): set url attribute on image links</title>
<updated>2024-08-30T13:07:13Z</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2024-08-30T13:05:07Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=95933209d408d8341847e7b8a6a4272e2f185e44'/>
<id>urn:sha1:95933209d408d8341847e7b8a6a4272e2f185e44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor(queries): Remove quotes from properties in set! directive</title>
<updated>2024-07-28T09:43:41Z</updated>
<author>
<name>Omar Valdez</name>
<email>omarantoniovaldezf2@gmail.com</email>
</author>
<published>2024-07-27T23:28:19Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=51bba660a89e0027929206b622c9c1cbdd995cfb'/>
<id>urn:sha1:51bba660a89e0027929206b622c9c1cbdd995cfb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(markdown): set url attribute on plain URLs</title>
<updated>2024-07-24T07:13:12Z</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2024-07-24T01:08:03Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=205102f37243e49fc1608635a38811ecc282d14c'/>
<id>urn:sha1:205102f37243e49fc1608635a38811ecc282d14c</id>
<content type='text'>
Setting the url attribute on actual URLs will cause Nvim to use the OSC
8 sequence on the entire URL, which enables terminal emulators to detect
the URL even when it is wrapped.

The (uri_autolink) node must use an #offset! directive to strip the
surrounding &lt;&gt; characters from the URL.
</content>
</entry>
<entry>
<title>fix(markdown): conceal nbsp entity as space (#6778)</title>
<updated>2024-06-17T09:04:00Z</updated>
<author>
<name>Jannik Buhr</name>
<email>17450586+jmbuhr@users.noreply.github.com</email>
</author>
<published>2024-06-17T09:04:00Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=f7edd3f5f636dceebc874a59bdcf9de6a41dbc68'/>
<id>urn:sha1:f7edd3f5f636dceebc874a59bdcf9de6a41dbc68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(markdown_inline): No spell for emails and HTML entities</title>
<updated>2024-06-10T06:38:59Z</updated>
<author>
<name>Omar Valdez</name>
<email>omarantoniovaldezf2@gmail.com</email>
</author>
<published>2024-06-10T01:00:44Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=da7ea8f335da52ef558d7405f314a6dde8d673c9'/>
<id>urn:sha1:da7ea8f335da52ef558d7405f314a6dde8d673c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(markdown): align link with image highlights</title>
<updated>2024-05-04T08:19:41Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-05-03T22:04:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=c579d186bec0a4af9d0741b235cfa0627ffd9f15'/>
<id>urn:sha1:c579d186bec0a4af9d0741b235cfa0627ffd9f15</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(vimdoc): adapt to breaking Neovim change</title>
<updated>2024-03-14T10:54:22Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-03-14T10:46:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=3ae78f376c2e721ce4feb23e9a5e8bc6062a2657'/>
<id>urn:sha1:3ae78f376c2e721ce4feb23e9a5e8bc6062a2657</id>
<content type='text'>
Problem:
https://github.com/neovim/neovim/commit/cb46f6e467268edf917cc3617b4c024a66b256de#diff-edf997b0c2d42d31828800641ac1f5a46487fe24a0d46ccf70bcd58a14f3868f
introduced a regression on how `#set!` behaves with several matches in a
single pattern, breaking conceals in, e.g., taglinks.

Solution: Separate taglink etc. patterns into concealed marker and
contents. Also add URL support for concealed markdown links.
</content>
</entry>
<entry>
<title>feat(highlights)!: enforce documented captures (#6232)</title>
<updated>2024-03-03T10:00:11Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-03-03T10:00:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=99ddf573531c4dbe53f743ecbc1595af5eb1d32f'/>
<id>urn:sha1:99ddf573531c4dbe53f743ecbc1595af5eb1d32f</id>
<content type='text'>
Problem: Allowing undocumented "secret" (sub)captures makes it harder
to write comprehensive colorschemes and catch inconsistent captures.

Solution: Only allow captures listed in CONTRIBUTING.md. Add useful
(cross-language) subcaptures and drop language-specific or too niche
ones.

Follow-up: Adding further `*.builtin` captures and changing queries to
use them.

Language-specific subcaptures should instead be added in user config or
a custom language plugin.
</content>
</entry>
<entry>
<title>fix(highlights): use `markup.raw.delimiter` for fences</title>
<updated>2024-01-20T12:04:29Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-01-19T18:37:44Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=a8fa3047b5f90e0d82dd7f371b50c14162e3e25d'/>
<id>urn:sha1:a8fa3047b5f90e0d82dd7f371b50c14162e3e25d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(markdown_inline): prioritize link URI (#5935)</title>
<updated>2024-01-20T10:00:37Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-01-20T10:00:37Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=88261266deca304a161ba8e5445f65722fdf2037'/>
<id>urn:sha1:88261266deca304a161ba8e5445f65722fdf2037</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: query formatting</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-06T06:05:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9'/>
<id>urn:sha1:57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat!: align standard captures with upstream</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-12-24T09:00:20Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1ae9b0e4558fe7868f8cda2db65239cfb14836d0'/>
<id>urn:sha1:1ae9b0e4558fe7868f8cda2db65239cfb14836d0</id>
<content type='text'>
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.

Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.

Specifically:

* tree-sitter "standard capture names"
  (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72):

  - `@parameter` -&gt; `@variable.parameter`
  - `@field` -&gt; `@variable.member`
  - `@namespace` -&gt; `@module`
  - `@float` -&gt; `@number.float`
  - `@symbol` -&gt; `@string.special.symbol`
  - `@string.regex` -&gt; `@string.regexp`
  - `@text.*` -&gt; `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
  - `@text.title` -&gt; `@markup.heading`
  - `@text.literal` -&gt; `@markup.raw`
  - `@text.reference` -&gt; `@markup.link`
  - `@text.uri` -&gt; `@markup.link.url` (in markup links)
  - `@string.special` -&gt; `@markup.link.label` (non-url links)
  - `@punctuation.special` -&gt; `@markup.list` (markdown lists only; move subitems from `@text.todo`)

* Helix captures
  (https://docs.helix-editor.com/master/themes.html#syntax-highlighting):

  - `@method` -&gt; `@function.method`
  - `@method.call` -&gt; `@function.method.call`
  - `@text.{todo,warning,note,danger}` -&gt; `@comment.{error,warning,hint,info,todo}`
  - `@text.diff.{add,delete,}` -&gt; `@diff.{plus,minus,delta}`
  - `@text.uri` -&gt; `@string.special.url` (outside markup)
  - `@preproc` -&gt; `@keyword.directive`
  - `@define` -&gt; `@keyword.directive`(`.define`?)
  - `@storageclass` -&gt; `@keyword.storage`
  - `@conditional` -&gt; `@keyword.conditional`
  - `@debug` -&gt; `@keyword.debug`
  - `@exception` -&gt; `@keyword.exception`
  - `@include` -&gt; `@keyword.import`
  - `@repeat` -&gt; `@keyword.repeat`

* cleanup

  - remove some redundant `@conceal` (but still allow it for conceal-only patterns)
  - remove obsolete `@error` (syntax linting is out of scope for this repo)
  - sort, cleanup capture list in `CONTRIBUTING.md`
</content>
</entry>
<entry>
<title>fix(markdown_inline): latex highlight injection (#5397)</title>
<updated>2024-01-05T09:58:35Z</updated>
<author>
<name>Zhuofeng Wang</name>
<email>zhuofengwang2003@gmail.com</email>
</author>
<published>2024-01-05T02:36:32Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e277ca9dec0dfd830133d1d82e79ad3f2cf026a1'/>
<id>urn:sha1:e277ca9dec0dfd830133d1d82e79ad3f2cf026a1</id>
<content type='text'>
The `injection.include-children` is needed in markdown_inline parser.
</content>
</entry>
<entry>
<title>feat(markdown): conceal triple backticks and HTML entities</title>
<updated>2023-09-17T21:16:53Z</updated>
<author>
<name>Maria José Solano</name>
<email>majosolano99@gmail.com</email>
</author>
<published>2023-09-17T21:13:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=eb0f975bf29dd6bbb58011ed0e694874a50ae79e'/>
<id>urn:sha1:eb0f975bf29dd6bbb58011ed0e694874a50ae79e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor: remove `include-children` from queries (#5226)</title>
<updated>2023-09-12T06:36:50Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2023-09-12T06:36:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=bfb4601f48c127ae6fb24a30ebf0495aaca8d28f'/>
<id>urn:sha1:bfb4601f48c127ae6fb24a30ebf0495aaca8d28f</id>
<content type='text'>
These `include-children` were to alleviate an issue with empty range language tree, which has been fixed for Neovim nightly/Neovim 0.9.2</content>
</entry>
<entry>
<title>chore(injections)!: update injection syntax to 0.9</title>
<updated>2023-08-12T15:34:15Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2023-05-03T10:07:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=78b54eb7f6a9956d25a3911fa0dfd0cabfe2a4c5'/>
<id>urn:sha1:78b54eb7f6a9956d25a3911fa0dfd0cabfe2a4c5</id>
<content type='text'>
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter

- update health check
- update doc
</content>
</entry>
<entry>
<title>fix(markdown_inline): don't spellcheck shortlinks</title>
<updated>2023-07-02T12:22:27Z</updated>
<author>
<name>Repetitive</name>
<email>serendipitousdog@protonmail.com</email>
</author>
<published>2023-07-01T09:19:48Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=254f3da6832252d579962ca6dcafae9c164de4ed'/>
<id>urn:sha1:254f3da6832252d579962ca6dcafae9c164de4ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(markup): distinguish heading level in queries</title>
<updated>2023-05-13T14:50:32Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-05-13T09:23:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=680807fa6a482c639119098bc48ca3831c66db13'/>
<id>urn:sha1:680807fa6a482c639119098bc48ca3831c66db13</id>
<content type='text'>
also add a few queries from Helix and remove controversial
code block conceal in Markdown
</content>
</entry>
<entry>
<title>fix: add @combined to markdown html</title>
<updated>2023-05-03T20:23:09Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2023-05-03T13:29:23Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=4fe6b4c07f2383053a3f4ccc1bd621f19ddd3ff6'/>
<id>urn:sha1:4fe6b4c07f2383053a3f4ccc1bd621f19ddd3ff6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(markdown_inline): add @nospell where appropriate</title>
<updated>2023-04-08T22:34:06Z</updated>
<author>
<name>Jaehwang Jung</name>
<email>tomtomjhj@gmail.com</email>
</author>
<published>2023-04-08T05:11:24Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=a57d2a599b57a619f58a5c91c89d9bf12f8977b2'/>
<id>urn:sha1:a57d2a599b57a619f58a5c91c89d9bf12f8977b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(markdown): add latex injections</title>
<updated>2023-02-05T16:29:45Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-02-05T12:44:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=24d5be6e7192a855a0eba21829717614fa1cf54e'/>
<id>urn:sha1:24d5be6e7192a855a0eba21829717614fa1cf54e</id>
<content type='text'>
added in https://github.com/MDeiml/tree-sitter-markdown/pull/71
</content>
</entry>
<entry>
<title>markdown: add strikethrough and blockquote captures</title>
<updated>2023-01-14T10:52:25Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-01-13T17:34:26Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=7e4a7c45082cf4fe5d42880827e2602cdaffc2f2'/>
<id>urn:sha1:7e4a7c45082cf4fe5d42880827e2602cdaffc2f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>highlights(markdown_inline): added ')' to links</title>
<updated>2023-01-04T11:17:33Z</updated>
<author>
<name>Josef Litoš</name>
<email>54900518+JosefLitos@users.noreply.github.com</email>
</author>
<published>2022-12-17T21:37:20Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=46cace42fa1a5954da9de7dded15137d3d247d4f'/>
<id>urn:sha1:46cace42fa1a5954da9de7dded15137d3d247d4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Conceal reference and shortcut links in markdown</title>
<updated>2022-08-11T21:36:44Z</updated>
<author>
<name>Ben Weedon</name>
<email>ben@weedon.email</email>
</author>
<published>2022-08-10T05:24:13Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=cea9c5941d5ccb9e937c2d4d49690d9c3ab09f74'/>
<id>urn:sha1:cea9c5941d5ccb9e937c2d4d49690d9c3ab09f74</id>
<content type='text'>
This change conceals `full_reference_link`, `collapsed_reference_link`,
and `shortcut_link` similarly to the `markdown_inline` query file
already conceals `inline_link` and `image`.

 ## Test markdown contents

```markdown
Some text before the link [full reference link text][link label] and now some
text after the link onto a new line.

Some text before the link [collapsed reference link text][] and now some text
after the link onto a new line.

Some text before the link [shortcut link text] and now some text after the link
onto a new line.
```

 ## Test markdown concealed screenshot

Closes #3267
</content>
</entry>
<entry>
<title>feat(markdown)!: switch to split parser (#3048)</title>
<updated>2022-06-26T16:02:29Z</updated>
<author>
<name>Matthias Deiml</name>
<email>matthias@deiml.net</email>
</author>
<published>2022-06-26T16:02:29Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=002084b1bea4311fdac184f080206bf890937d80'/>
<id>urn:sha1:002084b1bea4311fdac184f080206bf890937d80</id>
<content type='text'>
* switch to split markdown parser with separate block and inline parsers to improve performance
* add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212)
* split markdown queries into block and inline ones and add the injection for inline into block grammar
* add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory)

BREAKING CHANGE: downstream queries need to be adapted to new parser</content>
</entry>
</feed>
