From b4d2d08300a411c7f4bed75089fb27a07c788b6c Mon Sep 17 00:00:00 2001 From: Philippe MILINK Date: Sun, 17 Jul 2022 23:34:04 +0200 Subject: [PATCH] Supporte les images aux URLs relatives dans les ePUBs Fix #6319 --- zds/utils/templatetags/emarkdown.py | 1 - 1 file changed, 1 deletion(-) diff --git a/zds/utils/templatetags/emarkdown.py b/zds/utils/templatetags/emarkdown.py index f2bd45299c..6dbc382d56 100644 --- a/zds/utils/templatetags/emarkdown.py +++ b/zds/utils/templatetags/emarkdown.py @@ -158,7 +158,6 @@ def epub_markdown(md_input, image_directory): md_input, output_format="epub", images_download_dir=image_directory.absolute, - local_url_to_local_path=[settings.MEDIA_URL + "galleries/[0-9]+", image_directory.relative], ) .replace('src"/', f'src="{media_root}') .replace(f'src="{media_root}{replaced_media_url}', f'src="{media_root}')