1
0
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:
Ian Storm Taylor 2016-07-29 08:56:27 -07:00
parent 9ab6267271
commit e45e06d9e8

View File

@ -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') {