mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-22 14:21:54 +02:00
fix coding style
This commit is contained in:
parent
9ab6267271
commit
e45e06d9e8
@ -3,13 +3,13 @@ import React from 'react'
|
||||
|
||||
export default {
|
||||
rules: [
|
||||
// the first one has no serialize()
|
||||
// An empty rule that does not define `serialize`.
|
||||
{},
|
||||
// the second has a serialize() that does not return anything
|
||||
// A second rule that defines `serialize` but doesn't handle the cases.
|
||||
{
|
||||
serialize(obj, children) {}
|
||||
},
|
||||
// then the real one
|
||||
// The rule that actually matches.
|
||||
{
|
||||
serialize(obj, children) {
|
||||
if (obj.kind == 'block' && obj.type == 'paragraph') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user