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