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