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

Cannot change nested lists to a different type in new Markdown editor #11845

Open
laurent22 opened this issue Feb 16, 2025 · 2 comments · May be fixed by #11857
Open

Cannot change nested lists to a different type in new Markdown editor #11845

laurent22 opened this issue Feb 16, 2025 · 2 comments · May be fixed by #11857
Labels
bug It's a bug desktop All desktop platforms high High priority issues markdown-editor About the Markdown editor mobile All mobile platforms

Comments

@laurent22
Copy link
Owner

  • Create a list such as this:
- Test
    - test
- Test
  • Select all text
  • Click on the "Numbered list" toolbar button

=> the list is changed to this:

1. test
    - test
1. Test

So the nested item is not changed.

I believe that was already previously discussed and is done by design by CodeMirror 6 however that makes it very difficult to change large nested lists to a different type, for example from bullet lists to checkbox lists. From checking a few other editors (OneNote, Obsidian, Word and even our own RTE), I couldn't find any that only changes the outer list but not the inner ones.

@laurent22 laurent22 added markdown-editor About the Markdown editor bug It's a bug desktop All desktop platforms high High priority issues labels Feb 16, 2025
@personalizedrefrigerator
Copy link
Collaborator

I believe that was already previously discussed and is done by design by CodeMirror 6

The Markdown editor list conversion logic is custom logic. It should be possible to change this without modifying CodeMirror.

@personalizedrefrigerator personalizedrefrigerator added the mobile All mobile platforms label Feb 16, 2025
@rabbabansh
Copy link

rabbabansh commented Feb 18, 2025

I am trying to fix this by implementing a system which converts:

  • test
    • test
    • test
  • test

to

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues markdown-editor About the Markdown editor mobile All mobile platforms
Projects
None yet
3 participants