1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 22:21:20 +02:00

Doc fixes (#102)

* replace block api refs with inline

* fix inline link refs in static method sections

* link fixes in few more files
This commit is contained in:
Somasundaram Ayyappan
2016-07-18 02:30:31 +05:30
committed by Ian Storm Taylor
parent 70111becef
commit b5880e607f
9 changed files with 19 additions and 19 deletions

View File

@@ -20,8 +20,8 @@ Block nodes may contain nested block nodes, inline nodes, and text nodes—just
- [`length`](#length) - [`length`](#length)
- [`text`](#text) - [`text`](#text)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Block.create`](#block-create) - [`Block.create`](#blockcreate)
- [`Block.createList`](#block-createlist) - [`Block.createList`](#blockcreatelist)
- [Node Methods](#node-methods) - [Node Methods](#node-methods)

View File

@@ -13,8 +13,8 @@ Characters are how Slate associates [`Marks`](./mark.md) with a range of text, f
- [`marks`](#marks) - [`marks`](#marks)
- [`text`](#text) - [`text`](#text)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Character.create`](#character-create) - [`Character.create`](#charactercreate)
- [`Character.createList`](#character-createlist) - [`Character.createList`](#charactercreatelist)
## Properties ## Properties

View File

@@ -10,7 +10,7 @@ Data is simply a thin wrapper around [`Immutable.Map`](https://facebook.github.i
A data object can have any properties associated with it. A data object can have any properties associated with it.
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Data.create`](#data-create) - [`Data.create`](#datacreate)
## Static Methods ## Static Methods

View File

@@ -16,7 +16,7 @@ Documents are made up of block nodes, inline nodes, and text nodes—just like i
- [`length`](#length) - [`length`](#length)
- [`text`](#text) - [`text`](#text)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Document.create`](#document-create) - [`Document.create`](#documentcreate)
- [Node Methods](#node-methods) - [Node Methods](#node-methods)

View File

@@ -20,8 +20,8 @@ Inline nodes may contain nested inline nodes and text nodes—just like in the D
- [`length`](#length) - [`length`](#length)
- [`text`](#text) - [`text`](#text)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Inline.create`](#inline-create) - [`Inline.create`](#inlinecreate)
- [`Inline.createList`](#inline-createlist) - [`Inline.createList`](#inlinecreatelist)
- [Node Methods](#node-methods) - [Node Methods](#node-methods)
@@ -85,15 +85,15 @@ A concatenated string of all of the descendant [`Text`](./text.md) nodes of this
## Static Methods ## Static Methods
### `Block.create` ### `Inline.create`
`Block.create(properties: Object) => Block` `Inline.create(properties: Object) => Block`
Create a block from a plain Javascript object of `properties`. Create a block from a plain Javascript object of `properties`.
### `Block.createList` ### `Inline.createList`
`Block.createList(array: Array) => List` `Inline.createList(array: Array) => List`
Create a list of block nodes from a plain Javascript `array`. Create a list of inline nodes from a plain Javascript `array`.
## Node Methods ## Node Methods

View File

@@ -11,8 +11,8 @@ A formatting mark that can be associated with [`Characters`](./character.md). Ma
- [`data`](#data) - [`data`](#data)
- [`type`](#type) - [`type`](#type)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Mark.create`](#mark-create) - [`Mark.create`](#markcreate)
- [`Mark.createSet`](#mark-createset) - [`Mark.createSet`](#markcreateset)
## Properties ## Properties

View File

@@ -28,7 +28,7 @@ Often times, you don't need to specifically know which point is the "anchor" and
- [`startKey`](#startkey) - [`startKey`](#startkey)
- [`startOffset`](#startoffset) - [`startOffset`](#startoffset)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Selection.create`](#create) - [`Selection.create`](#selectioncreate)
- [Checking Methods](#checking-methods) - [Checking Methods](#checking-methods)
- [`has{Edge}AtEndOf`](#hasedgeatendof) - [`has{Edge}AtEndOf`](#hasedgeatendof)
- [`has{Edge}AtStartOf`](#hasedgeatstartof) - [`has{Edge}AtStartOf`](#hasedgeatstartof)

View File

@@ -31,8 +31,8 @@ For convenience, in addition to transforms, many of the [`Selection`](./selectio
- [`isExpanded`](#isExpanded) - [`isExpanded`](#isExpanded)
- [`isFocused`](#isfocused) - [`isFocused`](#isfocused)
- [`isForward`](#isForward) - [`isForward`](#isForward)
- [Static Methods](#static) - [Static Methods](#static-methods)
- [`State.create`](#create) - [`State.create`](#statecreate)
- [Methods](#methods) - [Methods](#methods)
- [`transform`](#transform) - [`transform`](#transform)

View File

@@ -15,7 +15,7 @@ A text node in a Slate [`Document`](./document.md). Text nodes are always the bo
- [`length`](#length) - [`length`](#length)
- [`text`](#text) - [`text`](#text)
- [Static Methods](#static-methods) - [Static Methods](#static-methods)
- [`Text.create`](#text-create) - [`Text.create`](#textcreate)
## Properties ## Properties