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