Skip to content

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

Merged
smitbarmase merged 3 commits intomainfrom
improve-markdown-indents
Dec 8, 2025
Merged

languages: Fix Markdown list items are automatically indented erroneously#44381
smitbarmase merged 3 commits intomainfrom
improve-markdown-indents

Conversation

@smitbarmase
Copy link
Member

Closes #44223

Regressed in #40794 in attempt to fix #40757. This PR handles both cases and add more tests around it.

Bug is only in Nightly.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 8, 2025
@zed-industries-bot
Copy link
Contributor

Messages
📖

This PR includes links to the following GitHub Issues: #40757
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 8de2f20

@smitbarmase smitbarmase merged commit e75a7ae into main Dec 8, 2025
24 checks passed
@smitbarmase smitbarmase deleted the improve-markdown-indents branch December 8, 2025 12:19
smitbarmase added a commit that referenced this pull request Dec 11, 2025
Builds on #40794 and
#44381

- Fixes the case where creating a new line inside a nested list puts the
cursor correctly under that nested list item.
- Fixes the case where typing a new list item at the expected indent no
longer auto-indents or outdents incorrectly.

Release Notes:

- Fixed an issue in Markdown where new list items weren’t respecting the
expected indentation on type.
nrbnlulu pushed a commit to nrbnlulu/zed that referenced this pull request Dec 14, 2025
Builds on zed-industries#40794 and
zed-industries#44381

- Fixes the case where creating a new line inside a nested list puts the
cursor correctly under that nested list item.
- Fixes the case where typing a new list item at the expected indent no
longer auto-indents or outdents incorrectly.

Release Notes:

- Fixed an issue in Markdown where new list items weren’t respecting the
expected indentation on type.
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
…usly (zed-industries#44381)

Closes zed-industries#44223

Regressed in zed-industries#40794 in attempt
to fix zed-industries#40757. This PR
handles both cases and add more tests around it.

Bug is only in Nightly.

Release Notes:

- N/A
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
Builds on zed-industries#40794 and
zed-industries#44381

- Fixes the case where creating a new line inside a nested list puts the
cursor correctly under that nested list item.
- Fixes the case where typing a new list item at the expected indent no
longer auto-indents or outdents incorrectly.

Release Notes:

- Fixed an issue in Markdown where new list items weren’t respecting the
expected indentation on type.
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
…usly (zed-industries#44381)

Closes zed-industries#44223

Regressed in zed-industries#40794 in attempt
to fix zed-industries#40757. This PR
handles both cases and add more tests around it.

Bug is only in Nightly.

Release Notes:

- N/A
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
Builds on zed-industries#40794 and
zed-industries#44381

- Fixes the case where creating a new line inside a nested list puts the
cursor correctly under that nested list item.
- Fixes the case where typing a new list item at the expected indent no
longer auto-indents or outdents incorrectly.

Release Notes:

- Fixed an issue in Markdown where new list items weren’t respecting the
expected indentation on type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown list items are automatically indented erroneously Markdown: Zed should not adjust indentation when inserting text with multiple cursors

2 participants