summaryrefslogtreecommitdiff
path: root/js/lib/html-renderer.js
diff options
context:
space:
mode:
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) {