Skip to content
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/
@@ -64,14 +64,14 @@ def set_site(self, site):

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 +="MARKDOWN_EXTENSIONS")
if not is_two_file:
_, content = self.split_metadata(content)
output = markdown(content, self.extensions, output_format="html5")
output, shortcode_deps =, filename=source, with_dependencies=True, extra_context=dict(post=post))
output, shortcode_deps =, 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.