From 4369f3fc2f062086397543c2bbcfd10fa88e0e39 Mon Sep 17 00:00:00 2001 From: Naresh Bhatia Date: Mon, 19 Aug 2019 12:10:55 -0400 Subject: [PATCH] Fix renderBlock() in paste-html example (#2934) * Fix renderBlock() in paste-html example It appears that render block is missing a case for rendering `paragraph`. Without this paragraphs are being rendered as `
`s. * Fixed lint error --- examples/paste-html/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/paste-html/index.js b/examples/paste-html/index.js index 6e70a154cf..9cd8b15cc9 100644 --- a/examples/paste-html/index.js +++ b/examples/paste-html/index.js @@ -192,6 +192,8 @@ class PasteHtml extends React.Component { const { attributes, children, node, isFocused } = props switch (node.type) { + case 'paragraph': + return

{children}

case 'quote': return
{children}
case 'code':