UNPKG

@atlaskit/adf-schema

Version:

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

18 lines 542 B
import { adfNode } from '@atlaskit/adf-schema-generator'; import { unsupportedMark } from '../marks/unsupportedMark'; import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute'; export var hardBreak = adfNode('hardBreak').define({ inline: true, selectable: false, linebreakReplacement: true, marks: [unsupportedMark, unsupportedNodeAttribute], attrs: { // Carried over from original JSON Schema as is text: { type: 'enum', values: ['\n'], default: '\n', optional: true } } });