Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image caching #65

Closed
1 task done
anelad opened this issue Jan 13, 2018 · 3 comments
Closed
1 task done

Image caching #65

anelad opened this issue Jan 13, 2018 · 3 comments

Comments

@anelad
Copy link

anelad commented Jan 13, 2018

  • I've searched other open/closed issues for duplicates before opening up this new issue.

I have to cache the images in the markdown for offline usage. Is there any way to achieve this?

@iwasrobbed
Copy link
Collaborator

iwasrobbed commented Jan 13, 2018

To better help me understand, how are you downloading the source file and then rendering the markdown into a view?

Down was created specifically as a transformer from text to Markdown, so it's difficult to say without knowing more.

@anelad
Copy link
Author

anelad commented Jan 13, 2018

in my case, markdowns are string objects stored in Firebase Cloud Firestore. I want to use Firebase Cloud storage references for image links. But for now using https links.

When I parse markdown into NSAttribıted string and show it in UITextView, the image is cached. But I have no idea how and where it is cached.

@iwasrobbed
Copy link
Collaborator

This falls a bit outside of Down's responsibilities since it's just a text transformation library. It's up to clients to handle rendering and caching concerns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants