Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Hitting enter in front of a dash makes unwanted indent #315

Open
namemv opened this issue Jan 27, 2024 · 0 comments
Open

Hitting enter in front of a dash makes unwanted indent #315

namemv opened this issue Jan 27, 2024 · 0 comments

Comments

@namemv
Copy link

namemv commented Jan 27, 2024

Describe the bug
If the cursor is placed before a dash, even in the middle of two words, and hit Enter - it creates unwanted indent.

To Reproduce
See the video attached

Expected behavior
It's expected to drop the cursor to the next line below at the same level of indentation, if it's the beginning of the line (same amount of tabs or spaces on the left as it previously was)
It's expected to drop the cursor to the next line below at the indentation level of the beginning of the line, if the cursor is before the dash in the middle of the line (at least 1 non-space-or-tab character is present on the left of the cursor, even if the first character to the left of the cursor - is space or tab)

Screenshots
See the video attached

Additional context
Hitting Enter multiple times creates a ladder of indents, which takes a lot of time to backspace, and requires to change from keyboard to mouse, select the ladder of unwanted indents, and hit Shift+Tab many times until it's fixed. And do that every time I want to move a row downwards to split the list to 2 lists and add a header.
Disabling the plugin "markdown-writer" helps.

Pulsar-markdown-unwanted-indent.mp4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant