From 2eeb6833bdccaab0c2175b4a9a07b0eb66188066 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Fri, 26 Mar 2021 22:08:08 -0700 Subject: [PATCH] Fix heading levels in Node documentation to be consistent --- docs/api/nodes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/api/nodes.md b/docs/api/nodes.md index 75792bae7..aba69344a 100644 --- a/docs/api/nodes.md +++ b/docs/api/nodes.md @@ -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. @@ -9,7 +9,9 @@ type Descendant = Element | Text type Ancestor = Editor | Element ``` -## Static methods +## Node + +### Static methods ###### `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. - #### Core actions ###### `addMark(key: string, value: any)`