1
Fork 0

Add markdown comment support

This commit is contained in:
Jake Howard 2016-06-30 14:29:07 +01:00
parent 579b94689c
commit 6aa084d615
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 9 additions and 1 deletions

View file

@ -65,7 +65,14 @@ CATEGORY_PAGE_PATH = "theme/templates/categories"
# Setup markdown extensions # Setup markdown extensions
from fontawesome_markdown import FontAwesomeExtension from fontawesome_markdown import FontAwesomeExtension
from pyembed.markdown import PyEmbedMarkdown 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 # Setup jinja2 filters
import filters import filters

View file

@ -3,5 +3,6 @@ fontawesome_markdown==0.2.5
gitpython==2.0.3 gitpython==2.0.3
iso8601==0.1.11 iso8601==0.1.11
markdown==2.6.6 markdown==2.6.6
git+https://github.com/ryneeverett/python-markdown-comments.git
pelican==3.6.3 pelican==3.6.3
pyembed-markdown==1.1.0 pyembed-markdown==1.1.0