Ah, none of the comments above lead to markdown attributes. They lead to another support post which leads to the idea of shortcodes and also the goldmark custom attributes which only supports headings and then continues on the shortcodes train.
Your response is a much welcomed addition to the thread as it feels like a proper answer and solution.