diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-07 17:51:42 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2015-01-07 17:51:59 -0800 |
commit | 8713ff912aaf13926d799d7cbd61e5cf014ddb7e (patch) | |
tree | 432693648a8833fd6aeeefcd1dc52ba2fed31d0a /js/lib/html-renderer.js | |
parent | 22083ee5776508fa06a2d373f8a578256a5c63e3 (diff) |
js: Use children instead of inline_content for Paragraph.
Diffstat (limited to 'js/lib/html-renderer.js')
-rw-r--r-- | js/lib/html-renderer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/html-renderer.js b/js/lib/html-renderer.js index 372eda0..f6efe32 100644 --- a/js/lib/html-renderer.js +++ b/js/lib/html-renderer.js @@ -78,9 +78,9 @@ var renderBlock = function(block, in_tight_list) { return (whole_doc === '' ? '' : whole_doc + '\n'); case 'Paragraph': if (in_tight_list) { - return this.renderInlines(block.inline_content); + return this.renderInlines(block.children); } else { - return inTags('p', [], this.renderInlines(block.inline_content)); + return inTags('p', [], this.renderInlines(block.children)); } break; case 'BlockQuote': @@ -105,7 +105,7 @@ var renderBlock = function(block, in_tight_list) { this.innersep); case 'Header': tag = 'h' + block.level; - return inTags(tag, [], this.renderInlines(block.inline_content)); + return inTags(tag, [], this.renderInlines(block.children)); case 'CodeBlock': info_words = block.info ? block.info.split(/ +/) : []; attr = (info_words.length === 0 || info_words[0].length === 0) ? |