commonmark-react-renderer
Advanced tools
Comparing version
@@ -5,2 +5,8 @@ # Change Log | ||
## [4.1.2] - 2016-03-12 | ||
### Changes | ||
- Also join sibling nodes within paragraphs and similar (Espen Hovlandsdal) | ||
## [4.1.1] - 2016-03-12 | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "commonmark-react-renderer", | ||
"description": "React renderer for CommonMark (rationalized Markdown)", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "commonmark", |
@@ -145,5 +145,9 @@ 'use strict'; | ||
props.children = props.children || (node.react && node.react.children); | ||
props.literal = node.literal; | ||
var children = props.children || (node.react && node.react.children); | ||
if (Array.isArray(children)) { | ||
props.children = children.reduce(reduceChildren, []) || null; | ||
} | ||
return props; | ||
@@ -150,0 +154,0 @@ } |
22966
0.99%280
1.08%