mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
FIX: Standardizing "extentions" to "extensions"
This commit is contained in:
parent
e0674aad87
commit
5e895317f6
2 changed files with 2 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ class MarkdownReader(Reader):
|
|||
|
||||
def read(self, filename):
|
||||
"""Parse content and metadata of markdown files"""
|
||||
markdown_extensions = self.settings.get('MARKDOWN_EXTENsIONS', [])
|
||||
markdown_extensions = self.settings.get('MARKDOWN_EXTENSIONS', [])
|
||||
if isinstance(markdown_extensions, (str, unicode)):
|
||||
markdown_extensions = [m.strip() for m in
|
||||
markdown_extensions.split(',')]
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class MdReaderTest(unittest.TestCase):
|
|||
def test_article_with_markdown_markup_extension(self):
|
||||
# test to ensure the markdown markup extension is being processed as expected
|
||||
reader = readers.MarkdownReader({})
|
||||
reader.settings.update(dict(MARKDOWN_EXTENSIONS=['toc']))
|
||||
reader.settings.update(dict(MARKDOWN_EXTENSIONS=['toc', ]))
|
||||
content, metadata = reader.read(_filename('article_with_markdown_markup_extensions.md'))
|
||||
expected = '<div class="toc">\n'\
|
||||
'<ul>\n'\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue