From ac97191bd857340efbd2840e0ffc5b7dd5cbdae3 Mon Sep 17 00:00:00 2001 From: Evan Jacobs Date: Wed, 30 Jan 2019 23:22:31 -0600 Subject: [PATCH] ensure there's a key set for every output might fix #233 --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 577cd0d4..7f95486a 100644 --- a/index.js +++ b/index.js @@ -760,17 +760,17 @@ export function compiler(markdown, options) { let jsx; if (arr.length > 1) { - jsx = inline ? {arr} :
{arr}
; + jsx = inline ? {arr} :
{arr}
; } else if (arr.length === 1) { jsx = arr[0]; // TODO: remove this for React 16 if (typeof jsx === 'string') { - jsx = {jsx}; + jsx = {jsx}; } } else { // TODO: return null for React 16 - jsx = ; + jsx = ; } return jsx; @@ -1365,7 +1365,7 @@ export function compiler(markdown, options) { > {output(node.content, state)} - ) : {output(node.fallbackContent, state)}; + ) : {output(node.fallbackContent, state)}; }, }, @@ -1525,7 +1525,7 @@ export function compiler(markdown, options) { if (footnotes.length) { jsx.props.children.push( -