mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 08:34:28 +02:00
Fix summary link anchors because they don't work in GitBook
This commit is contained in:
@@ -28,10 +28,6 @@
|
|||||||
## API
|
## API
|
||||||
|
|
||||||
- [Transforms](./api/transforms.md)
|
- [Transforms](./api/transforms.md)
|
||||||
- [Node Transforms](./api/transforms.md#node-transforms)
|
|
||||||
- [Selection Transforms](./api/transforms.md#selection-transforms)
|
|
||||||
- [Text Transforms](./api/transforms.md#text-transforms)
|
|
||||||
- [Editor Transforms](./api/transforms.md#general-transforms)
|
|
||||||
- [Node](./api/nodes.md)
|
- [Node](./api/nodes.md)
|
||||||
- [Editor](./api/editor.md)
|
- [Editor](./api/editor.md)
|
||||||
- [Element](./api/element.md)
|
- [Element](./api/element.md)
|
||||||
|
@@ -15,6 +15,11 @@ type Ancestor = Editor | Element
|
|||||||
|
|
||||||
## Static methods
|
## Static methods
|
||||||
|
|
||||||
|
- [Node Transforms](#node-transforms)
|
||||||
|
- [Selection Transforms](#selection-transforms)
|
||||||
|
- [Text Transforms](#text-transforms)
|
||||||
|
- [Editor Transforms](#general-transforms)
|
||||||
|
|
||||||
###### `Node.ancestor(root: Node, path: Path): Ancestor`
|
###### `Node.ancestor(root: Node, path: Path): Ancestor`
|
||||||
|
|
||||||
Get the node at a specific `path`, asserting that it is an ancestor node. If the specified node is not an ancestor node, throw an error.
|
Get the node at a specific `path`, asserting that it is an ancestor node. If the specified node is not an ancestor node, throw an error.
|
||||||
|
Reference in New Issue
Block a user