Markwon: ImagesPlugin class is missing
I’m trying to implement images in my markdown view but it seems that the ImagesPlugin.create() is missing.

About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (7 by maintainers)
I’m trying to implement images in my markdown view but it seems that the ImagesPlugin.create() is missing.

Hello @chrisbarth01 ,
you can use special
ImageSizeResolverthat explicitly makes all images fit the width of the screen. How to use customImageSizeResolveris shown in this sample. Then you can apply100%as width dimension, for example:Hello @chrisbarth01 ,
there is a problem with the GIF that you had shared - gifer.com responds with
content-type: text/plain.markwon-imagerelies on proper content type in order to trigger specificMediaDecoder. In this case response is decoded as a regular image (as a fallback strategy) and thus is not animated. You can try other image loaders or provideImagesPluginwith a customdefaultMediaDecoderwhich handles such a case:Other available image loaders that have GIF support are:
Hello @chrisbarth01 ,
if it is working for you in the sample app, then check your GIF:
Content-Type: image/gifcontent type?GifMediaDecoder.create()accepts an optionalautoplayargument, have you tried passing an explicittrue?Hello @chrisbarth01 ,
you need the
io.noties.markwon:image:$versionartifact. The list of available artifacts is available in the install section of documentation