mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-23 16:55:23 +01:00
* replace block api refs with inline * fix inline link refs in static method sections * link fixes in few more files
832 B
832 B
Mark
import { Mark } from 'slate'
A formatting mark that can be associated with Characters
. Marks are how Slate represents rich formatting like bold or italic.
Properties
Mark({
data: Data,
type: String
})
data
Data
A map of Data
.
type
String
The custom type of the mark (eg. bold
or italic
).
Static Methods
Mark.create
Mark.create(properties: Object) => Mark
Create a mark from a plain Javascript object of properties
.
Mark.createSet
Mark.createSet(array: Array) => Set
Create a set of marks from a plain Javascript array
.