From 6aa084d6154cb9809890e68db2ad49fa92bcdaec Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Thu, 30 Jun 2016 14:29:07 +0100 Subject: [PATCH] Add markdown comment support --- pelicanconf.py | 9 ++++++++- requirements.txt | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pelicanconf.py b/pelicanconf.py index 87b84b8..e4d834b 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -65,7 +65,14 @@ CATEGORY_PAGE_PATH = "theme/templates/categories" # Setup markdown extensions from fontawesome_markdown import FontAwesomeExtension from pyembed.markdown import PyEmbedMarkdown -MD_EXTENSIONS = [FontAwesomeExtension(), PyEmbedMarkdown(), 'codehilite(css_class=highlight)', 'extra'] +from mkdcomments import CommentsExtension +MD_EXTENSIONS = [ + FontAwesomeExtension(), + PyEmbedMarkdown(), + CommentsExtension(), + 'codehilite(css_class=highlight)', + 'extra' +] # Setup jinja2 filters import filters diff --git a/requirements.txt b/requirements.txt index d76ec48..6ad2f84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,6 @@ fontawesome_markdown==0.2.5 gitpython==2.0.3 iso8601==0.1.11 markdown==2.6.6 +git+https://github.com/ryneeverett/python-markdown-comments.git pelican==3.6.3 pyembed-markdown==1.1.0