Skip to content

Commit 882909d

Browse files
Minor change to markdown query, remove redundancy
1 parent 30e82be commit 882909d

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ require('render-markdown').setup({
5858
5959
(fenced_code_block) @code
6060
61-
(list_marker_plus) @list_marker
62-
(list_marker_minus) @list_marker
63-
(list_marker_star) @list_marker
61+
[
62+
(list_marker_plus)
63+
(list_marker_minus)
64+
(list_marker_star)
65+
] @list_marker
6466
6567
(pipe_table_header) @table_head
6668
(pipe_table_delimiter_row) @table_delim

demo/sample.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ if __name__ == "__main__":
2020
main()
2121
```
2222

23-
* List Item 1
23+
- List Item 1
2424
* List Item 2
2525
* Nested List Item 1
2626
* Nested List Item 2
27-
* List Item 3
27+
+ List Item 3
2828

2929
1. Item 1
3030
2. Item 2

lua/render-markdown/init.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ function M.setup(opts)
4242
4343
(fenced_code_block) @code
4444
45-
(list_marker_plus) @list_marker
46-
(list_marker_minus) @list_marker
47-
(list_marker_star) @list_marker
45+
[
46+
(list_marker_plus)
47+
(list_marker_minus)
48+
(list_marker_star)
49+
] @list_marker
4850
4951
(pipe_table_header) @table_head
5052
(pipe_table_delimiter_row) @table_delim

0 commit comments

Comments
 (0)