blob: 27190aaa34fde771b697197f179d4f411dc3183b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
exports.Document = Document;
exports.Paragraph = Paragraph;
exports.Run = Run;
exports.Text = Text;
function Document(children) {
return {
type: "document",
children: children
};
}
function Paragraph(children, properties) {
return {
type: "paragraph",
children: children,
properties: properties || {}
};
}
function Run(children, properties) {
return {
type: "run",
children: children,
properties: properties || {}
};
}
function Text(value) {
return {
type: "text",
value: value
};
}
|