UNPKG

@atlaskit/adf-schema

Version:

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

17 lines (15 loc) 326 B
import { underline as underlineFactory } from '../../next-schema/generated/markTypes'; /** * @name underline_mark */ export const underline = underlineFactory({ parseDOM: [{ tag: 'u' }, { style: 'text-decoration', getAttrs: value => value === 'underline' && null }], toDOM() { return ['u']; } });