Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passage à zmarkdown 11.3.0 #6410

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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