Files
MarkdownLivePreview/resources/transparent-loading.png
Mathieu PATUREL cf68b2c202 Set the maxwidth for images (fix #48)
It didn't look pretty when images where larger than the viewport, and it
"broke" word wrap (because it stretched the phantom, and hence lines
wrapped further, see #34)

Sublime Text's minihtml only supports width and height attributes on
img tags, therefore, we have to determine the aspect ratio of the images
ourselves if we want to set a maxsize (so that we can set the height).

We use a hacky function copy pasted from stackoverflow to determine the
size of common format of images using std lib python.
2019-11-16 14:56:03 +11:00

953 B
100x100px

/christian.morpurgo/MarkdownLivePreview/raw/commit/696eb1e1dd57e0d9355069d175e7ac20777799df/resources/transparent-loading.png