1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 18:39:51 +02:00

[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
This commit is contained in:
Marius Butuc
2021-03-31 01:08:37 -04:00
committed by GitHub
parent 2ca10c7f95
commit 9de9495095

View File

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