Skip to content

Commit be5a129

Browse files
committed
forgot to compile jsx
1 parent d06ccac commit be5a129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ var MdReact = function(md, options) {
5252
return getCollector(collector, result, i);
5353
else
5454
return getCollector(collector, [result], i);
55-
}.bind(this), []).map(function(item) {
55+
}.bind(this), []).map(function(item, index) {
5656
//console.log('last step item: ', item);
5757
if(item.length) {
5858
var html = item.join('');
5959
//console.log('html: ', html);
60-
return React.createElement("p", {dangerouslySetInnerHTML: {__html: html}})
60+
return React.createElement("p", {key: index, dangerouslySetInnerHTML: {__html: html}})
6161
}
6262
else
6363
return item;

0 commit comments

Comments
 (0)