diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-09 17:27:44 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-09 17:27:44 -0800 |
commit | 675c2640755ecf3fa7978e16d61261f64fd75e65 (patch) | |
tree | 51412ae13f039e62c22e110aef700fdd8f19ba95 /js/lib/html.js | |
parent | b7b5340c844f4016a1089053924dd8f92118d21f (diff) |
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.
Diffstat (limited to 'js/lib/html.js')
-rw-r--r-- | js/lib/html.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |