From 675c2640755ecf3fa7978e16d61261f64fd75e65 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Jan 2015 17:27:44 -0800 Subject: JS: use c rather than string_content property for code blocks, html. string_content is just for the raw string content that will be parsed as inlines, not for the 'real' content of the block element. --- js/lib/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lib/html.js') diff --git a/js/lib/html.js b/js/lib/html.js index 1f1b0ba..57f87e5 100644 --- a/js/lib/html.js +++ b/js/lib/html.js @@ -184,14 +184,14 @@ var renderNodes = function(block) { ? [] : [['class', 'language-' + esc(info_words[0], true)]]; cr(); out(tag('pre') + tag('code', attrs)); - out(this.escape(node.string_content)); + out(this.escape(node.c)); out(tag('/code') + tag('/pre')); cr(); break; case 'HtmlBlock': cr(); - out(node.string_content); + out(node.c); cr(); break; -- cgit v1.2.3