languages: Fix Markdown list items are automatically indented erroneously (#44381)

Closes #44223

Regressed in https://github.com/zed-industries/zed/pull/40794 in attempt
to fix https://github.com/zed-industries/zed/issues/40757. This PR
handles both cases and add more tests around it.

Bug is only in Nightly.

Release Notes:

- N/A
This commit is contained in:
Smit Barmase
2025-12-08 17:49:17 +05:30
committed by GitHub
parent 03cf7ddb53
commit e75a7aecd6
3 changed files with 122 additions and 30 deletions
+1 -1
View File
@@ -24,5 +24,5 @@ rewrap_prefixes = [
auto_indent_on_paste = false
auto_indent_using_last_non_empty_line = false
tab_size = 2
decrease_indent_pattern = "^\\s*$"
decrease_indent_pattern = "^.*$"
prettier_parser_name = "markdown"
@@ -1,3 +1 @@
(list (list_item) @indent)
(list_item (list) @indent)