1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 23:12:52 +02:00

Update saving-and-loading-html-content.md (#1362)

Fixed a typo: should be `paragraph`, not `code`.
This commit is contained in:
Joel Gustafson
2017-11-01 01:24:32 -04:00
committed by Ian Storm Taylor
parent 11c9c0bef5
commit dd87e3b26d

View File

@@ -246,7 +246,7 @@ class App extends React.Component {
renderNode = (props) => {
switch (props.node.type) {
case 'code': return <pre {...props.attributes}><code>{props.children}</code></pre>
case 'code': return <p {...props.attributes}>{props.children}</p>
case 'paragraph': return <p {...props.attributes}>{props.children}</p>
case 'quote': return <blockquote {...props.attributes}>{props.children}</blockquote>
}
}