This seems so obvious, I felt it must probably exist somewhere on the forum and yet I couldn't find it.
It's self-explanatory, so go ahead and adapt and improve!
Create Multi-Markdown Table Macro
Create Multi-Markdown Table.kmmacros (14 KB)
For more information, see the wiki Searching the Forum for Answers section.