diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/html-renderer.js | 4 | ||||
-rw-r--r-- | js/lib/inlines.js | 4 |
2 files changed, 4 insertions, 4 deletions
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': diff --git a/js/lib/inlines.js b/js/lib/inlines.js index 1921e60..ef7a00f 100644 --- a/js/lib/inlines.js +++ b/js/lib/inlines.js @@ -248,11 +248,11 @@ var scanDelims = function(cc) { }; var Emph = function(ils) { - return {t: 'Emph', c: ils}; + return {t: 'Emph', children: ils}; }; var Strong = function(ils) { - return {t: 'Strong', c: ils}; + return {t: 'Strong', children: ils}; }; var Str = function(s) { |