Change markdown multiline quoting behaviour on already quoted lines

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

MR acceptance checklist

Before After
beforePatch afterPatch

How to set up and validate locally

  1. Checkout & run the software from this PR
  2. Open an arbitrary issue in the UI
  3. Write something in the comment field in multiple lines. The lines should have new lines between them.
  4. Select the first text line of the text and apply 'Insert a quote' operation image
  5. Select all the lines and apply 'Insert a quote' operation image
  6. Verify on the rich text editor mode that the initial text line is nested quote with the following lines being quoted as well. image

Related to #439159 (closed)

Edited by Samuel Suikkanen

Merge request reports

Loading