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', +} ###############################################################################