summaryrefslogtreecommitdiffstats
path: root/lib/utils/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/page.js')
-rw-r--r--lib/utils/page.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js
index c4af715..5b4eca8 100644
--- a/lib/utils/page.js
+++ b/lib/utils/page.js
@@ -241,7 +241,12 @@ function normalizeHtml(src, options) {
.value();
var source = $(this).text();
- var html = options.book.template.applyBlock('code', source).body;
+ var html = options.book.template.applyBlock('code', {
+ body: source,
+ kwargs: {
+ language: lang
+ }
+ }).body;
$(this).html(html);
});