Not long ago I found that a markdown card, while allowing to render HTML, filters out some HTML attributes, like inline css styles, event handlers (onClick etc), class etc.
It makes it very limited. Personally, I see no reason to do that (especially class, and inline styles)
Currently, I replaced it with the god-card: custom button card. But obviously, it’s overkill.
I understand you have to respond any post on forum, for sake of reasoning alone. But at least do it properly.
The quote from the article you pointed me to:
For any markup that is not covered by Markdown’s syntax, you simply use HTML itself.
Markdown itself passes HTML as is (with some details to make the final presentation consistent).
There is no word, that markdown strips HTML attributes out.
The markdown compilers may provide a feature to sanitize input HTML. But this is optional to the markup language. HA Documentation does mention using of marked.js component. It is configurable regarding what has to be stripped/passed to the output.