Hi,
A project I help maintain uses a CodeMirror 6 editor with the default markdown list continuation.
Currently, pressing enter twice near the end of certain tight lists produces a non-tight list. Is there a way to customize this behavior?
For example,
- Start with the following document:
- This
- is
- a
- test
- Move the cursor to the end of the last item.
- Press enter three times.
Currently, this adds a new non-tight list item. For example,
- This
- is
- a
- test
-
Instead, I would prefer similar behavior to when there are already multiple toplevel items in the list — the last item is removed and the cursor is moved to a blank line.
Thank you for any suggestions!