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 ParagraphBaseDefinition {
|
9 | type: 'paragraph';
|
10 | |
11 |
|
12 |
|
13 | content?: Array<Inline>;
|
14 | marks?: Array<any>;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare type ParagraphDefinition = ParagraphBaseDefinition & NoMark;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare type ParagraphWithAlignmentDefinition = ParagraphBaseDefinition & MarksObject<AlignmentMarkDefinition>;
|
32 |
|
33 |
|
34 |
|
35 | export declare type ParagraphWithIndentationDefinition = ParagraphBaseDefinition & MarksObject<IndentationMarkDefinition>;
|
36 | export declare type ParagraphWithMarksDefinition = ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition;
|
37 | export declare const paragraph: NodeSpec;
|