summaryrefslogtreecommitdiff
path: root/pelicanconf.py
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-05-09 15:20:18 +0200
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-05-09 15:20:18 +0200
commiteaa28f4d0d366bfec7919a412abf59f627fab3d3 (patch)
treed2f4d873ad7de379e8b39e7f9bebf9e53dc1414d /pelicanconf.py
parentf915227ed354027fea1a4e3cd620016f4e7ae4d6 (diff)
Syntax highlighting on client (optional JS)
Diffstat (limited to 'pelicanconf.py')
-rw-r--r--pelicanconf.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/pelicanconf.py b/pelicanconf.py
index 8efbade..e0998c0 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -60,12 +60,17 @@ MENUITEMS = [("Home" , "/index.html"), ("Series", "/tags.html")]
# Markdown extras
MARKDOWN = {
'extension_configs': {
+ 'markdown.extensions.footnotes': {},
+ 'markdown.extensions.tables': {},
'markdown.extensions.codehilite': {
'css_class': 'highlight',
- 'noclasses': True,
+ 'use_pygments': False,
+ # Pygments breaks the semantics of the HTML inserting `span`
+ # elements in a `pre` instead of a `pre` with `code` inside.
+ # The theme uses optional JS for this (prismjs.com), this way
+ # semantics are mantained.
+ # See also: https://github.com/getpelican/pelican/issues/2569
},
- 'markdown.extensions.footnotes': {},
- 'markdown.extensions.tables': {},
# optionally, more extensions,
# e.g. markdown.extensions.meta
},