[gimp-web/migrate/py3] Update pelicanconf.local.py to update MD_EXTENSIONS



commit 87d9897838b47d324db1d3f3a6492a1f0da6f742
Author: Pat David <patdavid gmail com>
Date:   Fri Jul 12 16:52:55 2019 -0500

    Update pelicanconf.local.py to update MD_EXTENSIONS
    
    MD_EXTENSIONS is deprecated and will throw warnings if used.
    
    This commit updates pelicanconf.local.py to use the new
    MARKDOWN instead.

 pelicanconf.local.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 3308249b..df557612 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -110,7 +110,14 @@ TYPOGRIFY_IGNORE_TAGS = ['title']
 
 #DELETE_OUTPUT_DIRECTORY = True
 
-MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid', 
'toc(permalink=True)']
+#MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid', 
'toc(permalink=True)']
+MARKDOWN = {
+    'extension_configs': {
+        'markdown.extensions.codehilite': {'css_class': 'highlight'}
+    },
+    'output_format': 'html5',
+    'extensions': ['fenced_code', 'codehilite', 'extra', 'toc'],
+}
 
 # Pagination testing stuff
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]