From 9de94950958f478b6e10a7f852c455849c3d31ff Mon Sep 17 00:00:00 2001 From: Marius Butuc Date: Wed, 31 Mar 2021 01:08:37 -0400 Subject: [PATCH] [docs] Prune import that is never used (#4149) * [docs] Prune import that is never used In the Serializing docs, for the `serialize` function for HTML example, we import `Node` but never use it in the scope of the example. Remove it to eliminate the possibility for confusion. * Remove duplicated white line from TypeScript docs --- docs/concepts/09-serializing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/09-serializing.md b/docs/concepts/09-serializing.md index 193dbb78d..1b3c2c061 100644 --- a/docs/concepts/09-serializing.md +++ b/docs/concepts/09-serializing.md @@ -53,7 +53,7 @@ For example, here's a similar `serialize` function for HTML: ```js import escapeHtml from 'escape-html' -import { Node, Text } from 'slate' +import { Text } from 'slate' const serialize = node => { if (Text.isText(node)) {