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:
- Go to a post with some HTML markup, like Aaa aa aa aaaa aaaa aa ohgkgjsyduq - general - Discourse Demo
- Copy some formatted Markdown content
- Open the composer, select Markdown mode, and paste, and observe
- Select rich text mode and paste
- 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?