@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
16 lines (15 loc) • 361 B
TypeScript
import { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
export interface SubSupAttributes {
type: 'sub' | 'sup';
}
/**
* @name subsup_mark
*/
export interface SubSupDefinition {
type: 'subsup';
attrs: SubSupAttributes;
}
export interface SubSupMark extends Mark {
attrs: SubSupAttributes;
}
export declare const subsup: MarkSpec;