Skip to content

Commit

Permalink
source → source_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 8, 2017
1 parent 0a904e0 commit b6fdc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/compile/markdown/__init__.py
Expand Up @@ -64,14 +64,14 @@ def set_site(self, site):
self.config_dependencies.append(str(sorted(site.config.get("MARKDOWN_EXTENSIONS"))))

def compile_string(self, content, source_path=None, is_two_file=True):
"""Compile MarkDown into HTML strings."""
"""Compile Markdown into HTML strings."""
if markdown is None:
req_missing(['markdown'], 'build this site (compile Markdown)')
self.extensions += self.site.config.get("MARKDOWN_EXTENSIONS")
if not is_two_file:
_, content = self.split_metadata(content)
output = markdown(content, self.extensions, output_format="html5")
output, shortcode_deps = self.site.apply_shortcodes(output, filename=source, with_dependencies=True, extra_context=dict(post=post))
output, shortcode_deps = self.site.apply_shortcodes(output, filename=source_path, with_dependencies=True, extra_context={'post': post})
return output, shortcode_deps

def compile(self, source, dest, is_two_file=True, post=None, lang=None):
Expand Down

0 comments on commit b6fdc51

Please sign in to comment.