Problem pasting HTML into Markdown composer on mobile (until pasting once into rich text editor)

Priority/Severity: Moderate?

Platform:
Edge on Android, try.discourse.org (can reproduce in safe mode), device in vertical state
Cannot reproduce if using browser’s Desktop mode.

Description:
On mobile, the Markdown editor does not paste HTML as Markdown until it is pasted once into the rich text editor. (There are other conditions, see below)

Reproducible steps:

  1. Go to a post with some HTML markup, like Aaa aa aa aaaa aaaa aa ohgkgjsyduq - general - Discourse Demo
  2. Copy some formatted Markdown content
  3. Open the composer, select Markdown mode, and paste, and observe
  4. Select rich text mode and paste
  5. Paste in Markdown mode again and observe

Step 3 pastes the text as plain text, losing HTML formatting. Step 5 converts HTML into Markdown.

After step 5, pasting HTML into Markdown editor preserves markup until page is refreshed and text is copied again. (If you refresh after step 5 and paste into Markdown editor again without re-copying, markup is preserved)

I think this has something to do with the way text is copied?