mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +02:00
Update saving-and-loading-html-content.md (#3064)
Change the name of the first argument of the serialize function from 'object' to 'obj' in the description to match what is used in the code.
This commit is contained in:
committed by
Ian Storm Taylor
parent
4c0be6d7ce
commit
6fc0bc85e6
@@ -91,7 +91,7 @@ const rules = [
|
|||||||
|
|
||||||
The `serialize` function should also feel familiar. It's just taking [Slate models](../reference/slate) and turning them into React elements, which will then be rendered to an HTML string.
|
The `serialize` function should also feel familiar. It's just taking [Slate models](../reference/slate) and turning them into React elements, which will then be rendered to an HTML string.
|
||||||
|
|
||||||
The `object` argument of the `serialize` function will either be a [`Node`](../reference/slate/node.md), a [`Mark`](../reference/slate/mark.md) or a special immutable [`String`](../reference/serializers/html.md#ruleserialize) object. And the `children` argument is a React element describing the nested children of the object in question, for recursing.
|
The `obj` argument of the `serialize` function will either be a [`Node`](../reference/slate/node.md), a [`Mark`](../reference/slate/mark.md) or a special immutable [`String`](../reference/serializers/html.md#ruleserialize) object. And the `children` argument is a React element describing the nested children of the object in question, for recursing.
|
||||||
|
|
||||||
Okay, so now our serializer can handle `paragraph` nodes.
|
Okay, so now our serializer can handle `paragraph` nodes.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user