From 8b070cc27e82e72ad3b2c1e4fb731e180afe4065 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Fri, 26 Mar 2021 22:16:00 -0700 Subject: [PATCH] Fix heading levels in Locations docs to be consistent --- docs/api/locations.md | 8 ++++++-- docs/api/nodes.md | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/api/locations.md b/docs/api/locations.md index 49bdd72b5..86d6ba944 100644 --- a/docs/api/locations.md +++ b/docs/api/locations.md @@ -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. diff --git a/docs/api/nodes.md b/docs/api/nodes.md index aba69344a..e357bb335 100644 --- a/docs/api/nodes.md +++ b/docs/api/nodes.md @@ -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.