Skip to content

Commit

Permalink
Passage à zmarkdown 11.3.0 (#6410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen authored Oct 13, 2023
1 parent 8e13b69 commit f547a2f
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 165 deletions.
2 changes: 2 additions & 0 deletions zds/tutorialv2/publication_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import requests
from django.core.exceptions import ObjectDoesNotExist
from django.template.defaultfilters import date
from django.template.loader import render_to_string
from django.utils import translation
from django.utils.translation import gettext_lazy as _
Expand Down Expand Up @@ -414,6 +415,7 @@ def publish(self, md_file_path, base_name, **kwargs):
images_download_dir=str(base_directory / "images"),
local_url_to_local_path=["/", replacement_image_url],
heading_shift=-1,
date=date(published_content_entity.last_publication_date, "l d F Y"),
)
if content == "" and messages:
raise FailureDuringPublication(f"Markdown was not parsed due to {messages}")
Expand Down
Loading

0 comments on commit f547a2f

Please sign in to comment.