nvim-treesitter/tests/query/highlights/markdown/test.md
Christian Clason 99ddf57353
feat(highlights)!: enforce documented captures (#6232)
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.
2024-03-03 11:00:11 +01:00

28 lines
1.1 KiB
Markdown

# H1
<!-- <- @markup.heading.1 -->
## H2
<!-- <- @markup.heading.2 -->
- Item 1
- Item 2
<!-- <- @markup.list -->
1. Item 1
2. Item 2
<!-- <- @markup.list -->
----![image_description](https://example.com/image.jpg "awesome image title")
<!-- ^ @markup.link.label -->
<!-- ^ @markup.link.url -->
<!-- ^ @markup.link.label -->
<!--^ @markup.link -->
<!-- ^ @markup.link -->
<!-- ^ @markup.link -->
[link_text](#local_reference "link go brr...")
<!-- ^ @markup.link.label -->
<!-- ^ @markup.link.url -->
<!-- ^ @markup.link.label -->
<!-- <- @markup.link -->
<!-- ^ @markup.link -->