UNPKG

@atlaskit/adf-schema

Version:

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

19 lines (17 loc) 301 B
import { FONT_STYLE } from '../groups'; /** * @name underline_mark */ export const underline = { inclusive: true, group: FONT_STYLE, parseDOM: [{ tag: 'u' }, { style: 'text-decoration', getAttrs: value => value === 'underline' && null }], toDOM() { return ['u']; } };