What I know/I tried so far:
\spadesuitor\spadesrenders spade with filled black color.Similarly,
\clubsor\clubsuitrenders club with filled black color.Now
\heartsor\heartsuitjust renders heart with white filled bg.\colorboxtreats this as a box/rectangle, thus hiding the shape obviously.I can get black diamond as
\blacklozenge
Also, I get it that club and spade are black and the diamonds and heart are red in a deck, but I want heart symbol in black as well.
How can I get that? Thanks.
Asked on github too : https://github.com/KaTeX/KaTeX/discussions/2546