UNPKG

@atlaskit/adf-schema

Version:

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

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