[markdown] Typing `- - -` followed by Enter incorrectly adds a new list item
requested to merge 353774-markdown-typing-followed-by-enter-incorrectly-adds-a-new-list-item into master
What does this MR do and why?
Valid horizontal rules can look like a list item, such as
- — -
We should not create a new list item for these when typing Enter
Instead of
- - -
-
it should be
- - -
Same fix for *
list items
Related to #353774 (closed)
How to set up and validate locally
From the rails c
, enable the feature: Feature.enable(:markdown_continue_lists)
Try typing a valid markdown horizontal line, - --
and hit Enter. A new list item should not be created.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Brett Walker