From 8ddd78a0d9188d1510e2dddecb4c77fc3c6565f2 Mon Sep 17 00:00:00 2001 From: kleph Date: Sun, 8 Sep 2019 17:50:33 +0200 Subject: [PATCH] Use pelican 4 syntax instead to define markdown extensions --- pelicanconf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pelicanconf.py b/pelicanconf.py index c50f94c..51fdb4e 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -34,6 +34,16 @@ DEFAULT_PAGINATION = 10 #MARKUP = [ 'asc', 'asciidoc' ] MARKUP = ['mdown'] -MD_EXTENSIONS = ['codehilite(css_class=highlight)', 'extra', 'toc'] + +#MD_EXTENSIONS = ['admonition', 'codehilite(css_class=highlight)', 'extra', 'toc'] + +MARKDOWN = {'extension_configs': { 'markdown.extensions.codehilite': {'css_class': 'highlight'}, + 'markdown.extensions.extra': {}, + 'markdown.extensions.meta': {}, + 'markdown.extensions.toc': {}}, + 'output_format': 'html5'} + +#TYPOGRIFY = True + # Uncomment following line if you want document-relative URLs when developing RELATIVE_URLS = True