1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-09 16:56:36 +02:00

docs: minor grammatical fix

This commit is contained in:
Sunny Hirai
2021-05-25 18:52:36 -07:00
parent 65a1a9e281
commit cf6145dc6e

View File

@@ -24,11 +24,11 @@ Element nodes behave differently depending on the [Slate editor's configuration]
### Block vs. Inline
A "block" element can only be siblings with other "block" elements. AN "inline" node can be siblings with `Text` nodes or other "inline" elements.
A "block" element can only be siblings with other "block" elements. An "inline" node can be siblings with `Text` nodes or other "inline" elements.
### Void vs Not Void
In a not "void" element, Slate handles the rendering of its `children` (e.g. in a paragraph where the `Text` and `Inline` children are rendered by Slate). In a "void" element, the `children` are rendered by the `Element`s render code.
In a not "void" element, Slate handles the rendering of its `children` (e.g. in a paragraph where the `Text` and `Inline` children are rendered by Slate). In a "void" element, the `children` are rendered by the `Element`'s render code.
## Static methods