From b517e726cb6cdf64d42b3cdef17a2d4896ead216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Mon, 24 Apr 2023 14:14:32 +0200 Subject: [PATCH] ascii only in file slugs, WARNING undocumented option --- spip2md/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spip2md/metadata.py b/spip2md/metadata.py index eb34f44..f16dced 100644 --- a/spip2md/metadata.py +++ b/spip2md/metadata.py @@ -32,7 +32,7 @@ class metadata: self.microblog = article.microblog # Probably unused def get_slug(self): - return slugify(f"{self.id}-{self.title}", allow_unicode=False) + return slugify(f"{self.id}-{self.title}", only_ascii=True) def get_frontmatter(self): return "---\n{}---".format(