UNPKG

@atlaskit/adf-schema

Version:

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

31 lines (30 loc) 736 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fontSize = void 0; var _adfSchemaGenerator = require("@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": [...] * } * ``` */ var fontSize = exports.fontSize = (0, _adfSchemaGenerator.adfMark)('fontSize').define({ attrs: { fontSize: { type: 'enum', values: ['small'] } }, stage0: true });