django-markdownx
django-markdownx copied to clipboard
Use static tag like behavior
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.
Ok, I will look into this later. Thanx!