tatsy / markdown-it-imsize

markdown-it plugin for size-specified image markups.
48 stars 93 forks source link

Use imsize in browser? #10

Open paul-bell opened 6 years ago

paul-bell commented 6 years ago

Perhaps related to the browserify questions.

Is there any way to make markdown-it-imsize work in client side?

Thank you.

JRileyH commented 4 years ago

This repo is apparently dead. Reading the code it seems like this is the simplest of all fixes though, you just kill the autofill feature which uses fs to measure the image.. Seems like kind of a dumb feature to break browser support in what should be the simplest plugin ever.

Anyways I made a fork for my own uses: https://github.com/JRileyH/markdown-it-imsize

People stumbling on this issues can look at what I did and copy if they like. (Or reboot this plugin to actually work well if you've got the time :pray: )