I've posted a modified version of this – closer to your use case – which copies any selected MD and populates the clipboard with:
- Plain text with the MD markup removed (for pasting into plain text editors)
- Rich text based on the markup (for pasting into rich text editors)
Copy Markdown as rich text and plain unmarked text - Macro Library - Keyboard Maestro Discourse