1 | import { NodeSpec } from 'prosemirror-model';
|
2 | import { AlignmentMarkDefinition, IndentationMarkDefinition } from '../marks';
|
3 | import { MarksObject, NoMark } from './types/mark';
|
4 | import { Inline } from './types/inline-content';
|
5 |
|
6 |
|
7 |
|
8 | export interface HeadingBaseDefinition {
|
9 | type: 'heading';
|
10 | |
11 |
|
12 |
|
13 | content?: Array<Inline>;
|
14 | marks?: Array<any>;
|
15 | attrs: {
|
16 | |
17 |
|
18 |
|
19 |
|
20 | level: number;
|
21 | };
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 | export declare type HeadingDefinition = HeadingBaseDefinition & NoMark;
|
27 |
|
28 |
|
29 |
|
30 | export declare type HeadingWithAlignmentDefinition = HeadingBaseDefinition & MarksObject<AlignmentMarkDefinition>;
|
31 |
|
32 |
|
33 |
|
34 | export declare type HeadingWithIndentationDefinition = HeadingBaseDefinition & MarksObject<IndentationMarkDefinition>;
|
35 | export declare type HeadingWithMarksDefinition = HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition;
|
36 | export declare const heading: NodeSpec;
|