From 6fc0bc85e6b02c81db84a781f01f51ed249a0173 Mon Sep 17 00:00:00 2001 From: Stewart Sum Date: Sat, 9 Nov 2019 15:56:18 -0700 Subject: [PATCH] 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. --- docs/walkthroughs/saving-and-loading-html-content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/saving-and-loading-html-content.md b/docs/walkthroughs/saving-and-loading-html-content.md index 8969ba97c..ee1f3facb 100644 --- a/docs/walkthroughs/saving-and-loading-html-content.md +++ b/docs/walkthroughs/saving-and-loading-html-content.md @@ -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 `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.