cmark
My personal build of CMark ✏️
- Commit
- 22083ee5776508fa06a2d373f8a578256a5c63e3
- Parent
- d18ac1f99637cf3cc4381d34e35a196c5526027a
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
js: Use children rather than 'c' for Emph and Strong contents.
Now we use 'children' uniformly, in both inlines and blocks,
for child nodes.
Diffstat
2 files changed, 4 insertions, 4 deletions
diff --git 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':