Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Block: Create a list item when users insert a hyphen #56173

Open
scruffian opened this issue Nov 15, 2023 · 3 comments
Open

List Block: Create a list item when users insert a hyphen #56173

scruffian opened this issue Nov 15, 2023 · 3 comments
Labels
[Block] List Affects the List Block [Type] Enhancement A suggestion for improvement.

Comments

@scruffian
Copy link
Contributor

scruffian commented Nov 15, 2023

What problem does this address?

When users want to create list items they can do so by typing - followed by . Some users don't know that they have to add a space after the -.

What is your proposed solution?

Why not create a list item as soon as as user enters a -? Are there any scenarios in which a user would want a - at the start of their content where it wasn't followed by a space?

list.mp4
@scruffian scruffian added [Type] Enhancement A suggestion for improvement. [Block] List Affects the List Block labels Nov 15, 2023
@t-hamano
Copy link
Contributor

My guess is that it follows the rules that require a space between the hyphen and the text in order to represent a list in Markdown.

The Classic Editor also requires a space to convert to a list.

a2e5258fc405c24addbff6713097acd8.mp4

@draganescu draganescu changed the title List Block: Create a list item when users insert a hypen List Block: Create a list item when users insert a hyphen Nov 22, 2023
@ellatrix
Copy link
Member

Why not create a list item as soon as as user enters a -?

Because that would cause more false positives. On the other hand, I'm not sure when you would want a hyphen (or asterisk) at the start of a paragraph. We could try it, and revert if there's too many complaints.

@ellatrix
Copy link
Member

Btw, a similar comment was made about the --- shortcut, by @jarekmorawski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants