Skip to content

Commit

Permalink
Supporte les images aux URLs relatives dans les ePUBs
Browse files Browse the repository at this point in the history
Fix #6319
  • Loading branch information
philippemilink committed Jul 17, 2022
1 parent 00f7d5c commit a56d230
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zds/utils/templatetags/emarkdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit a56d230

Please sign in to comment.