From 946aec142ec865ac92e1e2bd7c36c4edec838d82 Mon Sep 17 00:00:00 2001 From: Situphen Date: Wed, 26 Oct 2022 23:01:47 +0200 Subject: [PATCH] =?UTF-8?q?Passage=20=C3=A0=20zmarkdown=2011.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zds/tutorialv2/publication_utils.py | 2 ++ zmd/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/zds/tutorialv2/publication_utils.py b/zds/tutorialv2/publication_utils.py index 3f9eaff042..c609ae3165 100644 --- a/zds/tutorialv2/publication_utils.py +++ b/zds/tutorialv2/publication_utils.py @@ -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 _ @@ -408,6 +409,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}") diff --git a/zmd/package.json b/zmd/package.json index da4248b18d..8455dbb9cc 100644 --- a/zmd/package.json +++ b/zmd/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "zmarkdown": "11.0.2" + "zmarkdown": "11.2.2" }, "engines": { "node": ">=12.0.0"