Fix a strange bug with preserving paragraphs in list items
What does this MR do and why?
Fix a strange bug with preserving paragraphs in list items
When list items are created in RTE, it incorrectly converts some markdown paragraphs to a <p> tag. This commit fixes it.
Changelog
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Switch to rich text editor.
- Create a paragraph. Press enter.
- Create two list items after the paragraph.
- Switch to plain text editor.
Before:
<p>paragraph</p>
*
<p>list item 1</p>
*
<p>list item 2</p>
After:
paragraph
* list item 1
* list item 2
Edited by Himanshu Kapoor