Allow pasting a markdown block
What does this MR do and why?
When pasting a sole pre block containing markdown, it should be pasted as markdown, and not raw text. This fixes an issue where markdown copied from the docs isn't pasted correctly in the rich text editor.
Issue was brought up in #416293 (comment 1474565053). Related to #419106 (closed).
Screenshots or screen recordings
Copied content | Before | After |
---|---|---|
|
How to set up and validate locally
- Go to Markdown docs.
- Copy some markdown examples.
- Paste in rich text editor.
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 Himanshu Kapoor