mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 12:30:11 +02:00
Merge branch 'master' of github.com:ianstormtaylor/slate
This commit is contained in:
@@ -118,24 +118,6 @@ const Leaf = ({ attributes, children, leaf }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const Decoration = props => {
|
|
||||||
const { children, attributes, leaf } = props
|
|
||||||
|
|
||||||
switch (decoration.type) {
|
|
||||||
case 'blockquote': {
|
|
||||||
return (
|
|
||||||
<span {...attributes} style={{}}>
|
|
||||||
{children}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
default: {
|
|
||||||
throw new Error(`Unknown markdown decoration type: "${decoration.type}"`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const initialValue = [
|
const initialValue = [
|
||||||
{
|
{
|
||||||
children: [
|
children: [
|
||||||
|
Reference in New Issue
Block a user