One seems to be from the web, one from other apps. A solution to one won’t necessarily work for the other.
Web can be done via the extensions, the other has to have an intermediary converter.
I think it would be quite a complicated function for Obsidian to incorporate into copy and paste itself, but Licat is a wizard, so who knows.