summaryrefslogtreecommitdiff
path: root/js/lib/html-renderer.js
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2015-01-07 17:39:48 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2015-01-07 17:39:48 -0800
commitd18ac1f99637cf3cc4381d34e35a196c5526027a (patch)
treeb6cfabb5d7a9548e1c95c2795bedb0a70a39e701 /js/lib/html-renderer.js
parentea17d4a1aac6d82d294a733068ffc6f65329797a (diff)
js: Changed 'label' in Link, Image to 'children'.
This matches the C impl. Also removed an unused property.
Diffstat (limited to 'js/lib/html-renderer.js')
-rw-r--r--js/lib/html-renderer.js4
1 files changed, 2 insertions, 2 deletions
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) {