I am the creator of Creative Portfolio Theme
I think what you need are Hugo’s Short codes. They are designed exactly to overcome such limitations of markdown. You can think of them as embeddable html components inside a markdown.
Take a look at this page to know more about them https://gohugo.io/extras/shortcodes/