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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user