Skip to content

Commit

Permalink
Add missing lang parameter in compile_string call (Markdown)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 18, 2017
1 parent f0cd6c6 commit 60f7135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
Expand Up @@ -27,7 +27,8 @@ Features
Bugfixes
--------

* Pass post object and language to reST compiler (for shortcodes)
* Pass previously missing post object and language to reST compiler
and language to Markdown compiler (for shortcodes)
* Fix crashes when rendering subcategories (Issue #2681)
* Prevent writing cache files outside of the cache folder
(Issue #2684)
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/__init__.py
Expand Up @@ -103,7 +103,7 @@ def compile(self, source, dest, is_two_file=True, post=None, lang=None):
with io.open(dest, "w+", encoding="utf8") as out_file:
with io.open(source, "r", encoding="utf8") as in_file:
data = in_file.read()
output, shortcode_deps = self.compile_string(data, source, is_two_file, post)
output, shortcode_deps = self.compile_string(data, source, is_two_file, post, lang)
out_file.write(output)
if post is None:
if shortcode_deps:
Expand Down

0 comments on commit 60f7135

Please sign in to comment.