From 22083ee5776508fa06a2d373f8a578256a5c63e3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 7 Jan 2015 17:41:15 -0800 Subject: js: Use children rather than 'c' for Emph and Strong contents. Now we use 'children' uniformly, in both inlines and blocks, for child nodes. --- js/lib/html-renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lib/html-renderer.js') diff --git a/js/lib/html-renderer.js b/js/lib/html-renderer.js index 236852b..372eda0 100644 --- a/js/lib/html-renderer.js +++ b/js/lib/html-renderer.js @@ -30,9 +30,9 @@ var renderInline = function(inline) { case 'Hardbreak': return inTags('br', [], "", true) + '\n'; case 'Emph': - return inTags('em', [], this.renderInlines(inline.c)); + return inTags('em', [], this.renderInlines(inline.children)); case 'Strong': - return inTags('strong', [], this.renderInlines(inline.c)); + return inTags('strong', [], this.renderInlines(inline.children)); case 'Html': return inline.c; case 'Link': -- cgit v1.2.3