1
0
Fork 0
forked from github/pelican
we don't need a new MARKDOWN_EXTENSIONS setting because the equivalent setting
MD_EXTENSIONS already exists.
This commit is contained in:
Bruno Binet 2012-12-03 22:35:08 +01:00
commit 8bb86d3e5d
5 changed files with 4 additions and 15 deletions

View file

@ -136,13 +136,8 @@ class MarkdownReader(Reader):
def read(self, filename):
"""Parse content and metadata of markdown files"""
markdown_extensions = self.settings.get('MARKDOWN_EXTENSIONS', [])
if isinstance(markdown_extensions, (str, unicode)):
markdown_extensions = [m.strip() for m in
markdown_extensions.split(',')]
text = pelican_open(filename)
md = Markdown(extensions=set(
self.extensions + markdown_extensions + ['meta']))
md = Markdown(extensions=set(self.extensions + ['meta']))
content = md.convert(text)
metadata = {}