UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

26 lines (25 loc) 584 B
import { adfMark } from '@atlaskit/adf-schema-generator'; /** * fontSize mark - applies size styling to block-level content * * This mark is used to apply size styling to entire paragraph nodes, * enabling features like "small text" in the full-page editor. * * @example * ```json * { * "type": "paragraph", * "marks": [{ "type": "fontSize", "attrs": { "fontSize": "small" }}], * "content": [...] * } * ``` */ export const fontSize = adfMark('fontSize').define({ attrs: { fontSize: { type: 'enum', values: ['small'] } }, stage0: true });