jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
568 stars 48 forks source link

How to set local image by URI? #14

Closed 809825706 closed 2 years ago

jeziellago commented 2 years ago

Hi @809825706 I'll include support to load local images on the next version.

yveskalume commented 2 years ago

I think you can put your image in assets folder, then replace the image url with : file:///android_asset/yourimage.jpg

jeziellago commented 2 years ago

I think you can put your image in assets folder, then replace the image url with : file:///android_asset/yourimage.jpg

Yes, images in assets folder works. like file:///android_asset/my_image.png.

homarox commented 5 months ago

Hello, How can I show my local image? My local directory: app/src/main/assets/test.png Then I try with val markdownContent = """![Local Image](./app/src/main/assets/test.png "Test Image")""" But it not working