Obsidian should have supported this natively.
And that's how the pasting on the Mac *should* work. The editor exports the copied selection to the clipboard in multiple formats, and the receiving application takes the richest one it can handle.
That's how it's done in my Markdown app, for example.