showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.19k stars 1.56k forks source link

BUG: image dimensions must be specified in CSS style attribute (option parseImgDimensions) #955

Open wintifrosch opened 1 year ago

wintifrosch commented 1 year ago

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

¹ Read more in a discussion from 2016 in Stackoverflow

image