mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 17:24:02 +02:00
fix coding style
This commit is contained in:
@@ -3,13 +3,13 @@ import React from 'react'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
rules: [
|
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) {}
|
serialize(obj, children) {}
|
||||||
},
|
},
|
||||||
// then the real one
|
// The rule that actually matches.
|
||||||
{
|
{
|
||||||
serialize(obj, children) {
|
serialize(obj, children) {
|
||||||
if (obj.kind == 'block' && obj.type == 'paragraph') {
|
if (obj.kind == 'block' && obj.type == 'paragraph') {
|
||||||
|
Reference in New Issue
Block a user