Oddly, I didn’t find any topic about that, but it has been a long-standing minor issue.
Here, I defined the custom size as 50×20 for a square emoji:

Result in the markdown composer preview:

Result in the post looks as expected:

Also, images that have been given custom height and width in the markdown editor ignore those attributes when we switch to the rich editor markdown:

However, it looks as expected when posted.