From d18ac1f99637cf3cc4381d34e35a196c5526027a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 7 Jan 2015 17:39:48 -0800 Subject: js: Changed 'label' in Link, Image to 'children'. This matches the C impl. Also removed an unused property. --- 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 ed19624..236852b 100644 --- a/js/lib/html-renderer.js +++ b/js/lib/html-renderer.js @@ -40,10 +40,10 @@ var renderInline = function(inline) { if (inline.title) { attrs.push(['title', this.escape(inline.title, true)]); } - return inTags('a', attrs, this.renderInlines(inline.label)); + return inTags('a', attrs, this.renderInlines(inline.children)); case 'Image': attrs = [['src', this.escape(inline.destination, true)], - ['alt', this.renderInlines(inline.label). + ['alt', this.renderInlines(inline.children). replace(/\<[^>]*alt="([^"]*)"[^>]*\>/g, '$1'). replace(/\<[^>]*\>/g, '')]]; if (inline.title) { -- cgit v1.2.3