I
MarkSpec
Schema contribution of a mark type.
Signature
ts
interface MarkSpecProperties
| Property | Type | Description |
|---|---|---|
attrs?readonly | Readonly<Record<string, import("./attr-spec").AttrSpec<import("..").AttrValue>>> | undefined | Attribute specs (defaults + validation), e.g. link `href`. |
inclusive?readonly | boolean | undefined | Whether typing at the mark's boundary extends it (bold yes, link no). |
excludes?readonly | readonly string[] | "_all" | undefined | Marks that cannot coexist with this one; `'_all'` excludes every other. |
rank?readonly | number | undefined | Nesting order in {@link DOMOutputSpec}: lower = outer wrapper. |
toDOMreadonly | (mark: Mark) => DOMOutputSpec | Serialize the mark to a DOM description wrapping its content. |
parseDOMreadonly | readonly ParseRule[] | Rules for parsing DOM into this mark (paste / import). |