Copying text with bullets and headings is removed in editor making it plain text.
I'm submitting a...
- [ ] Bug report
- [x] Feature request
- Copy any text with headers, lists and other markdown applied.
- Pasting it in editor is transforming it into plain text.
Be able to paste text in preview mode to not lose text transformation. Is there a plan or chance to support this feature?
Actual:

Expected:

This will be really useful when want to copy and paste huge texts from other places.
CodeMirror provides the paste event, triggered when the user paste something in the text area.
The clipboard API standards describes several datatypes (which is now well supported by recent browsers), including plain text and html.
Here is good start to understand this:
<!DOCTYPE html>
<html><body>
<p contenteditable="true" id="paragraph">Paste something here, please.</p>
<script>
document.getElementById('paragraph').addEventListener('paste', function(e) {
console.log('text/plain clipboard: ' + e.clipboardData.getData('text/plain'));
console.log('text/html clipboard: ' + e.clipboardData.getData('text/html'));
});
</script>
</body></html>
So basically we need to retrieve e.clipboardData.getData('text/html') then convert it to markdown using the reverse parser and injecting in the text area.
This is a great feature, has it been worked on or implemented yet?