Skip to content
Permalink
Browse files

Add missing lang parameter in compile_string call (Markdown)

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information...
Kwpolska committed Mar 18, 2017
1 parent f0cd6c6 commit 60f7135676fac1774c510ac0d7f75e671eaac85e
Showing with 3 additions and 2 deletions.
  1. +2 −1 CHANGES.txt
  2. +1 −1 nikola/plugins/compile/markdown/__init__.py
@@ -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)
@@ -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:

0 comments on commit 60f7135

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