Change markdown multiline quoting behaviour on already quoted lines
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Applying a multiline quoting edit in the markdown editor will further nest existing quotes if the selection contains unquoted lines or undo a quoting level if the selected lines only contain quoted lines. Additionally, single-line behaviour will now support the undoing of existing quotes.
References
- This is my attempt to fix: #439159 (closed)
MR acceptance checklist
| Before | After |
|---|---|
| beforePatch | afterPatch |
How to set up and validate locally
- Checkout & run the software from this PR
- Open an arbitrary issue in the UI
- Write something in the comment field in multiple lines. The lines should have new lines between them.
- Select the first text line of the text and apply 'Insert a quote' operation
- Select all the lines and apply 'Insert a quote' operation
- Verify on the rich text editor mode that the initial text line is nested quote with the following lines being quoted as well.
Related to #439159 (closed)
Edited by Samuel Suikkanen


