R
I

MarkSpec

Schema contribution of a mark type.

Signature

ts
interface MarkSpec

Properties

PropertyTypeDescription
attrs?readonlyReadonly<Record<string, import("./attr-spec").AttrSpec<import("..").AttrValue>>> | undefinedAttribute specs (defaults + validation), e.g. link `href`.
inclusive?readonlyboolean | undefinedWhether typing at the mark's boundary extends it (bold yes, link no).
excludes?readonlyreadonly string[] | "_all" | undefinedMarks that cannot coexist with this one; `'_all'` excludes every other.
rank?readonlynumber | undefinedNesting order in {@link DOMOutputSpec}: lower = outer wrapper.
toDOMreadonly(mark: Mark) => DOMOutputSpecSerialize the mark to a DOM description wrapping its content.
parseDOMreadonlyreadonly ParseRule[]Rules for parsing DOM into this mark (paste / import).