You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation is broken.
To retain backwards compatibility, the showdown option should add a style attribute (CSS) instead of the height and width attributes in HTML.
Background information
The <img with="..." height="..."> attributes in HTML5 are not used like in the old days anymore (before css). Nowadays, the rendered dimensions should be specified in CSS. According to HTML5 spec, the attributes must contain integer values only.¹
Current browsers don't interpret image sizes specified in em (and other units) any more. The unit is ignored, the value is interpreted as a pixel dimension, which is really not what was intended.
The current implementation is broken.
To retain backwards compatibility, the showdown option should add a style attribute (CSS) instead of the height and width attributes in HTML.
Background information
<img with="..." height="...">
attributes in HTML5 are not used like in the old days anymore (before css). Nowadays, the rendered dimensions should be specified in CSS. According to HTML5 spec, the attributes must contain integer values only.¹¹ Read more in a discussion from 2016 in Stackoverflow
The text was updated successfully, but these errors were encountered: