UNPKG

@atlaskit/adf-schema

Version:

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

23 lines (21 loc) 345 B
import { FONT_STYLE } from '../groups'; /** * @name strike_mark */ export const strike = { inclusive: true, group: FONT_STYLE, parseDOM: [{ tag: 'strike' }, { tag: 's' }, { tag: 'del' }, { style: 'text-decoration', getAttrs: value => value === 'line-through' && null }], toDOM() { return ['s']; } };