Skip to content

Commit 60f7135

Browse files
committedMar 18, 2017
Add missing lang parameter in compile_string call (Markdown)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent f0cd6c6 commit 60f7135

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎CHANGES.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Features
2727
Bugfixes
2828
--------
2929

30-
* Pass post object and language to reST compiler (for shortcodes)
30+
* Pass previously missing post object and language to reST compiler
31+
and language to Markdown compiler (for shortcodes)
3132
* Fix crashes when rendering subcategories (Issue #2681)
3233
* Prevent writing cache files outside of the cache folder
3334
(Issue #2684)

‎nikola/plugins/compile/markdown/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def compile(self, source, dest, is_two_file=True, post=None, lang=None):
103103
with io.open(dest, "w+", encoding="utf8") as out_file:
104104
with io.open(source, "r", encoding="utf8") as in_file:
105105
data = in_file.read()
106-
output, shortcode_deps = self.compile_string(data, source, is_two_file, post)
106+
output, shortcode_deps = self.compile_string(data, source, is_two_file, post, lang)
107107
out_file.write(output)
108108
if post is None:
109109
if shortcode_deps:

0 commit comments

Comments
 (0)
Please sign in to comment.