1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +02:00

Fix heading levels in Locations docs to be consistent

This commit is contained in:
Sunny Hirai
2021-03-26 22:16:00 -07:00
parent 2eeb6833bd
commit 8b070cc27e
2 changed files with 7 additions and 3 deletions

View File

@@ -6,7 +6,9 @@ The `Location` interface is a union of the ways to refer to a specific location
type Location = Path | Point | Range
```
## Static methods
## Location
### Static methods
###### `Location.isLocation(value: any): value is Location`
@@ -32,7 +34,7 @@ interface Point {
}
```
## Static methods
### Static methods
###### `Point.compare(point: Point, another: Point): -1 | 0 | 1`
@@ -72,6 +74,8 @@ interface Range {
}
```
### Static methods
###### `Range.edges(range: Range, options?): [Point, Point]`
Get the start and end points of a `range`, in the order in which they appear in the document.

View File

@@ -1,4 +1,4 @@
# Node (Editor, Element, Text)
# Nodes
The `Node` union type represents all of the different types of nodes that occur in a Slate document tree.