import { Mark } from 'slate'
A formatting mark that can be associated with Characters
. Marks are how Slate represents rich formatting like bold or italic.
Mark({
data: Data,
type: String
})
Data
A map of Data
.
String
The custom type of the mark (eg. bold
or italic
).
Mark.create(properties: Object) => Mark
Create a mark from a plain Javascript object of properties
.
Mark.createSet(array: Array) => Set
Create a set of marks from a plain Javascript array
.