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:
committed by
Ian Storm Taylor
parent
11c9c0bef5
commit
dd87e3b26d
@@ -246,7 +246,7 @@ class App extends React.Component {
|
|||||||
renderNode = (props) => {
|
renderNode = (props) => {
|
||||||
switch (props.node.type) {
|
switch (props.node.type) {
|
||||||
case 'code': return <pre {...props.attributes}><code>{props.children}</code></pre>
|
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>
|
case 'quote': return <blockquote {...props.attributes}>{props.children}</blockquote>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user