Skip to content
Permalink
Browse files

source → source_path

  • Loading branch information
Kwpolska committed Jan 8, 2017
1 parent 0a904e0 commit b6fdc511a434af486346de5994d3f4c333f45bda
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/compile/markdown/__init__.py
@@ -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):

0 comments on commit b6fdc51

Please sign in to comment.
You can’t perform that action at this time.