mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
Fix heading levels in Node documentation to be consistent
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Node
|
# Node (Editor, Element, Text)
|
||||||
|
|
||||||
The `Node` union type represents all of the different types of nodes that occur in a Slate document tree.
|
The `Node` union type represents all of the different types of nodes that occur in a Slate document tree.
|
||||||
|
|
||||||
@@ -9,7 +9,9 @@ type Descendant = Element | Text
|
|||||||
type Ancestor = Editor | Element
|
type Ancestor = Editor | Element
|
||||||
```
|
```
|
||||||
|
|
||||||
## Static methods
|
## Node
|
||||||
|
|
||||||
|
### Static methods
|
||||||
|
|
||||||
###### `Node.ancestor(root: Node, path: Path): Ancestor`
|
###### `Node.ancestor(root: Node, path: Path): Ancestor`
|
||||||
|
|
||||||
@@ -447,7 +449,6 @@ Normalize a Node according to the schema.
|
|||||||
|
|
||||||
Called when there is a change in the editor.
|
Called when there is a change in the editor.
|
||||||
|
|
||||||
|
|
||||||
#### Core actions
|
#### Core actions
|
||||||
|
|
||||||
###### `addMark(key: string, value: any)`
|
###### `addMark(key: string, value: any)`
|
||||||
|
Reference in New Issue
Block a user