From 1bce64b722e20c38e53ad25b9a0cb2d9f8132012 Mon Sep 17 00:00:00 2001 From: eclipse Date: Fri, 21 Mar 2025 19:13:26 +0100 Subject: [PATCH] enabled pretty quotation marks --- pelicanconf.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pelicanconf.py b/pelicanconf.py index 0c09954..b671b16 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -122,7 +122,23 @@ IMAGE_PROCESS = { "card": ["scale_in 350 100% True"] } - +# enable smarty extension and configure it to substitute quotation marks +MARKDOWN = { + 'extension_configs': { + 'markdown.extensions.codehilite': {'css_class': 'highlight'}, + 'markdown.extensions.extra': {}, + 'markdown.extensions.meta': {}, + 'smarty': { + 'substitutions': { + 'left-single-quote': '‚', + 'right-single-quote': '‘', + 'left-double-quote': '„', + 'right-double-quote': '“' + } + }, + }, + 'output_format': 'html5', +} ###############################################################################