django-markdownx icon indicating copy to clipboard operation
django-markdownx copied to clipboard

Use static tag like behavior

Open aatishnn opened this issue 7 years ago • 1 comments

I am using markdownx with django-storages, storing media files in Google storage. Since django-storages returns an Url that expires after some time when using this storage backend, the media Url that was returned after the file is uploaded will not work to load images after that expiry time has passed.

I suggest using default_storage.url() when rendering HTML out of markdown. I have created a fork with very naive implementation of this style at https://github.com/aatishnn/django-markdownx/commit/9b0585b22f7138c35b0a60d86fefe294c8c733f2

What are your views on this? If this is ok, I will be happy to improve on this and send a pull request.

aatishnn avatar May 15 '17 11:05 aatishnn

Ok, I will look into this later. Thanx!

adi- avatar May 16 '17 12:05 adi-