@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
21 lines (19 loc) • 353 B
JavaScript
import { FONT_STYLE } from '../groups';
/**
* @name underline_mark
*/
export var underline = {
inclusive: true,
group: FONT_STYLE,
parseDOM: [{
tag: 'u'
}, {
style: 'text-decoration',
getAttrs: function getAttrs(value) {
return value === 'underline' && null;
}
}],
toDOM: function toDOM() {
return ['u'];
}
};