@podlite/schema 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,272 +1,268 @@
1
1
  {
2
2
  "$ref": "#/definitions/RootBlock",
3
3
  "definitions": {
4
- "Image": {
4
+ "Ambient": {
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "type": {
8
8
  "type": "string",
9
9
  "enum": [
10
- "image"
10
+ "ambient"
11
11
  ]
12
12
  },
13
- "src": {
13
+ "text": {
14
14
  "type": "string"
15
15
  },
16
- "alt": {
17
- "type": "string"
16
+ "location": {
17
+ "$ref": "#/definitions/Location"
18
18
  }
19
19
  },
20
20
  "required": [
21
- "src",
21
+ "location",
22
+ "text",
22
23
  "type"
23
24
  ]
24
25
  },
25
- "Toc": {
26
+ "Location": {
26
27
  "type": "object",
27
28
  "properties": {
28
- "type": {
29
- "type": "string",
30
- "enum": [
31
- "toc"
32
- ]
33
- },
34
- "title": {
35
- "type": "string"
29
+ "start": {
30
+ "$ref": "#/definitions/Position"
36
31
  },
37
- "content": {
38
- "$ref": "#/definitions/TocList"
32
+ "end": {
33
+ "$ref": "#/definitions/Position"
39
34
  }
40
35
  },
41
36
  "required": [
42
- "content",
43
- "type"
37
+ "end",
38
+ "start"
44
39
  ]
45
40
  },
46
- "TocList": {
41
+ "Position": {
47
42
  "type": "object",
48
43
  "properties": {
49
- "type": {
50
- "type": "string",
51
- "enum": [
52
- "toc-list"
53
- ]
44
+ "line": {
45
+ "type": "number"
54
46
  },
55
- "level": {
47
+ "column": {
56
48
  "type": "number"
57
49
  },
58
- "content": {
59
- "type": "array",
60
- "items": {
61
- "anyOf": [
62
- {
63
- "$ref": "#/definitions/TocList"
64
- },
65
- {
66
- "$ref": "#/definitions/TocItem"
67
- }
68
- ]
69
- }
50
+ "offset": {
51
+ "type": "number"
70
52
  }
71
53
  },
72
54
  "required": [
73
- "content",
74
- "level",
75
- "type"
55
+ "column",
56
+ "line",
57
+ "offset"
76
58
  ]
77
59
  },
78
- "TocItem": {
60
+ "BlockPod": {
79
61
  "type": "object",
80
62
  "properties": {
63
+ "name": {
64
+ "type": "string",
65
+ "enum": [
66
+ "pod"
67
+ ]
68
+ },
81
69
  "type": {
82
70
  "type": "string",
83
71
  "enum": [
84
- "toc-item"
72
+ "block"
85
73
  ]
86
74
  },
87
- "node": {
88
- "$ref": "#/definitions/PodNode"
75
+ "location": {
76
+ "$ref": "#/definitions/Location"
89
77
  },
90
78
  "content": {
91
79
  "type": "array",
92
80
  "items": {
93
81
  "$ref": "#/definitions/PodNode"
94
82
  }
83
+ },
84
+ "margin": {
85
+ "type": "string"
86
+ },
87
+ "config": {
88
+ "type": "array",
89
+ "items": {
90
+ "anyOf": [
91
+ {
92
+ "$ref": "#/definitions/BrokenConfigItem"
93
+ },
94
+ {
95
+ "$ref": "#/definitions/ConfigItem"
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ "id": {
101
+ "type": "string"
95
102
  }
96
103
  },
97
104
  "required": [
98
105
  "content",
99
- "node",
106
+ "location",
107
+ "margin",
108
+ "name",
100
109
  "type"
101
110
  ]
102
111
  },
103
112
  "PodNode": {
104
113
  "anyOf": [
105
114
  {
106
- "$ref": "#/definitions/Image"
115
+ "$ref": "#/definitions/Ambient"
107
116
  },
108
117
  {
109
- "$ref": "#/definitions/Toc"
118
+ "$ref": "#/definitions/BlockPod"
110
119
  },
111
120
  {
112
- "$ref": "#/definitions/BlockImage"
121
+ "$ref": "#/definitions/BlockData"
113
122
  },
114
123
  {
115
- "$ref": "#/definitions/BlockPicture"
124
+ "$ref": "#/definitions/BlockFormula"
116
125
  },
117
126
  {
118
- "$ref": "#/definitions/BlockCaption"
127
+ "$ref": "#/definitions/BlockCode"
119
128
  },
120
129
  {
121
- "$ref": "#/definitions/RootBlock"
130
+ "$ref": "#/definitions/BlankLine"
122
131
  },
123
132
  {
124
- "$ref": "#/definitions/FormattingCodeB"
133
+ "$ref": "#/definitions/BlockNested"
125
134
  },
126
135
  {
127
- "$ref": "#/definitions/FormattingCodeC"
136
+ "$ref": "#/definitions/BlockMarkdown"
128
137
  },
129
138
  {
130
- "$ref": "#/definitions/FormattingCodeE"
139
+ "$ref": "#/definitions/BlockOutput"
131
140
  },
132
141
  {
133
- "$ref": "#/definitions/FormattingCodeN"
142
+ "$ref": "#/definitions/BlockInput"
134
143
  },
135
144
  {
136
- "$ref": "#/definitions/FormattingCodeX"
145
+ "$ref": "#/definitions/BlockPara"
137
146
  },
138
147
  {
139
- "$ref": "#/definitions/FormattingCodeZ"
148
+ "$ref": "#/definitions/BlockHead"
140
149
  },
141
150
  {
142
- "$ref": "#/definitions/FormattingCodeV"
151
+ "$ref": "#/definitions/BlockComment"
143
152
  },
144
153
  {
145
- "$ref": "#/definitions/FormattingCodeS"
154
+ "$ref": "#/definitions/BlockDefn"
146
155
  },
147
156
  {
148
- "$ref": "#/definitions/FormattingCodeA"
157
+ "$ref": "#/definitions/Para"
149
158
  },
150
159
  {
151
- "$ref": "#/definitions/FormattingCodeD"
160
+ "$ref": "#/definitions/Text"
152
161
  },
153
162
  {
154
- "$ref": "#/definitions/FormattingCodeL"
163
+ "$ref": "#/definitions/Code"
155
164
  },
156
165
  {
157
- "$ref": "#/definitions/FormattingCodeI"
166
+ "$ref": "#/definitions/BlockNamed"
158
167
  },
159
168
  {
160
- "$ref": "#/definitions/FormattingCodeAny"
169
+ "$ref": "#/definitions/Verbatim"
161
170
  },
162
171
  {
163
- "$ref": "#/definitions/Ambient"
172
+ "$ref": "#/definitions/BlockTable"
164
173
  },
165
174
  {
166
- "$ref": "#/definitions/Verbatim"
175
+ "$ref": "#/definitions/List"
167
176
  },
168
177
  {
169
- "$ref": "#/definitions/Text"
178
+ "$ref": "#/definitions/BlockConfig"
170
179
  },
171
180
  {
172
- "$ref": "#/definitions/Para"
181
+ "$ref": "#/definitions/BlockItem"
173
182
  },
174
183
  {
175
- "$ref": "#/definitions/Code"
184
+ "$ref": "#/definitions/Alias"
176
185
  },
177
186
  {
178
- "$ref": "#/definitions/BlankLine"
187
+ "$ref": "#/definitions/BlockToc"
179
188
  },
180
189
  {
181
- "$ref": "#/definitions/List"
190
+ "$ref": "#/definitions/BlockPicture"
182
191
  },
183
192
  {
184
- "$ref": "#/definitions/BlockConfig"
193
+ "$ref": "#/definitions/BlockImage"
185
194
  },
186
195
  {
187
- "$ref": "#/definitions/Alias"
196
+ "$ref": "#/definitions/Image"
197
+ },
198
+ {
199
+ "$ref": "#/definitions/RootBlock"
188
200
  },
189
201
  {
190
202
  "$ref": "#/definitions/Separator"
191
203
  },
192
204
  {
193
- "$ref": "#/definitions/BlockPod"
205
+ "$ref": "#/definitions/BlockCaption"
194
206
  },
195
207
  {
196
- "$ref": "#/definitions/BlockData"
208
+ "$ref": "#/definitions/FormattingCodeA"
197
209
  },
198
210
  {
199
- "$ref": "#/definitions/BlockComment"
211
+ "$ref": "#/definitions/FormattingCodeC"
200
212
  },
201
213
  {
202
- "$ref": "#/definitions/BlockDefn"
214
+ "$ref": "#/definitions/FormattingCodeB"
203
215
  },
204
216
  {
205
- "$ref": "#/definitions/BlockItem"
217
+ "$ref": "#/definitions/FormattingCodeD"
206
218
  },
207
219
  {
208
- "$ref": "#/definitions/BlockOutput"
220
+ "$ref": "#/definitions/FormattingCodeE"
209
221
  },
210
222
  {
211
- "$ref": "#/definitions/BlockInput"
223
+ "$ref": "#/definitions/FormattingCodeF"
212
224
  },
213
225
  {
214
- "$ref": "#/definitions/BlockPara"
226
+ "$ref": "#/definitions/FormattingCodeI"
215
227
  },
216
228
  {
217
- "$ref": "#/definitions/BlockCode"
229
+ "$ref": "#/definitions/FormattingCodeL"
218
230
  },
219
231
  {
220
- "$ref": "#/definitions/BlockToc"
232
+ "$ref": "#/definitions/FormattingCodeN"
221
233
  },
222
234
  {
223
- "$ref": "#/definitions/BlockMarkdown"
235
+ "$ref": "#/definitions/FormattingCodeX"
224
236
  },
225
237
  {
226
- "$ref": "#/definitions/BlockNested"
238
+ "$ref": "#/definitions/FormattingCodeZ"
227
239
  },
228
240
  {
229
- "$ref": "#/definitions/BlockHead"
241
+ "$ref": "#/definitions/FormattingCodeV"
230
242
  },
231
243
  {
232
- "$ref": "#/definitions/BlockTable"
244
+ "$ref": "#/definitions/FormattingCodeS"
233
245
  },
234
246
  {
235
- "$ref": "#/definitions/BlockNamed"
247
+ "$ref": "#/definitions/FormattingCodeAny"
248
+ },
249
+ {
250
+ "$ref": "#/definitions/Toc"
236
251
  },
237
252
  {
238
253
  "type": "string"
239
254
  }
240
255
  ]
241
256
  },
242
- "BlockImage": {
257
+ "BlockData": {
243
258
  "type": "object",
244
259
  "properties": {
245
260
  "name": {
246
261
  "type": "string",
247
262
  "enum": [
248
- "image"
263
+ "data"
249
264
  ]
250
265
  },
251
- "caption": {
252
- "type": "string"
253
- },
254
- "link": {
255
- "type": "string"
256
- },
257
- "content": {
258
- "type": "array",
259
- "items": [
260
- {
261
- "$ref": "#/definitions/Image"
262
- },
263
- {
264
- "$ref": "#/definitions/BlockCaption"
265
- }
266
- ],
267
- "minItems": 2,
268
- "maxItems": 2
269
- },
270
266
  "type": {
271
267
  "type": "string",
272
268
  "enum": [
@@ -276,6 +272,12 @@
276
272
  "location": {
277
273
  "$ref": "#/definitions/Location"
278
274
  },
275
+ "content": {
276
+ "type": "array",
277
+ "items": {
278
+ "$ref": "#/definitions/PodNode"
279
+ }
280
+ },
279
281
  "margin": {
280
282
  "type": "string"
281
283
  },
@@ -304,73 +306,11 @@
304
306
  "type"
305
307
  ]
306
308
  },
307
- "BlockCaption": {
309
+ "BrokenConfigItem": {
308
310
  "type": "object",
309
311
  "properties": {
310
312
  "name": {
311
- "type": "string",
312
- "enum": [
313
- "caption"
314
- ]
315
- },
316
- "content": {
317
- "type": "array",
318
- "items": {
319
- "$ref": "#/definitions/PodNode"
320
- }
321
- },
322
- "type": {
323
- "type": "string",
324
- "enum": [
325
- "block"
326
- ]
327
- }
328
- },
329
- "required": [
330
- "content",
331
- "name",
332
- "type"
333
- ]
334
- },
335
- "Location": {
336
- "type": "object",
337
- "properties": {
338
- "start": {
339
- "$ref": "#/definitions/Position"
340
- },
341
- "end": {
342
- "$ref": "#/definitions/Position"
343
- }
344
- },
345
- "required": [
346
- "end",
347
- "start"
348
- ]
349
- },
350
- "Position": {
351
- "type": "object",
352
- "properties": {
353
- "line": {
354
- "type": "number"
355
- },
356
- "column": {
357
- "type": "number"
358
- },
359
- "offset": {
360
- "type": "number"
361
- }
362
- },
363
- "required": [
364
- "column",
365
- "line",
366
- "offset"
367
- ]
368
- },
369
- "BrokenConfigItem": {
370
- "type": "object",
371
- "properties": {
372
- "name": {
373
- "type": "string"
313
+ "type": "string"
374
314
  },
375
315
  "value": {
376
316
  "anyOf": [
@@ -452,33 +392,27 @@
452
392
  "value"
453
393
  ]
454
394
  },
455
- "BlockPicture": {
395
+ "BlockFormula": {
456
396
  "type": "object",
457
397
  "properties": {
458
398
  "name": {
459
399
  "type": "string",
460
400
  "enum": [
461
- "picture"
401
+ "formula"
462
402
  ]
463
403
  },
464
- "caption": {
465
- "type": "string"
466
- },
467
- "link": {
468
- "type": "string"
469
- },
470
404
  "content": {
471
405
  "type": "array",
472
406
  "items": [
473
407
  {
474
- "$ref": "#/definitions/Image"
475
- },
476
- {
477
- "$ref": "#/definitions/BlockCaption"
408
+ "$ref": "#/definitions/Verbatim"
478
409
  }
479
410
  ],
480
- "minItems": 2,
481
- "maxItems": 2
411
+ "minItems": 1,
412
+ "maxItems": 1
413
+ },
414
+ "margin": {
415
+ "type": "string"
482
416
  },
483
417
  "type": {
484
418
  "type": "string",
@@ -489,9 +423,6 @@
489
423
  "location": {
490
424
  "$ref": "#/definitions/Location"
491
425
  },
492
- "margin": {
493
- "type": "string"
494
- },
495
426
  "config": {
496
427
  "type": "array",
497
428
  "items": {
@@ -517,17 +448,32 @@
517
448
  "type"
518
449
  ]
519
450
  },
520
- "RootBlock": {
451
+ "Verbatim": {
521
452
  "type": "object",
522
453
  "properties": {
523
- "name": {
454
+ "type": {
524
455
  "type": "string",
525
456
  "enum": [
526
- "root"
457
+ "verbatim"
527
458
  ]
528
459
  },
529
- "content": {
530
- "$ref": "#/definitions/AstTree"
460
+ "value": {
461
+ "type": "string"
462
+ }
463
+ },
464
+ "required": [
465
+ "type",
466
+ "value"
467
+ ]
468
+ },
469
+ "BlockCode": {
470
+ "type": "object",
471
+ "properties": {
472
+ "name": {
473
+ "type": "string",
474
+ "enum": [
475
+ "code"
476
+ ]
531
477
  },
532
478
  "type": {
533
479
  "type": "string",
@@ -535,6 +481,15 @@
535
481
  "block"
536
482
  ]
537
483
  },
484
+ "location": {
485
+ "$ref": "#/definitions/Location"
486
+ },
487
+ "content": {
488
+ "type": "array",
489
+ "items": {
490
+ "$ref": "#/definitions/PodNode"
491
+ }
492
+ },
538
493
  "margin": {
539
494
  "type": "string"
540
495
  },
@@ -557,874 +512,1032 @@
557
512
  },
558
513
  "required": [
559
514
  "content",
515
+ "location",
560
516
  "margin",
561
517
  "name",
562
518
  "type"
563
519
  ]
564
520
  },
565
- "AstTree": {
566
- "type": "array",
567
- "items": {
568
- "$ref": "#/definitions/PodNode"
569
- }
570
- },
571
- "FormattingCodeB": {
521
+ "BlankLine": {
572
522
  "type": "object",
573
523
  "properties": {
574
524
  "type": {
575
525
  "type": "string",
576
526
  "enum": [
577
- "fcode"
578
- ]
579
- },
580
- "name": {
581
- "type": "string",
582
- "enum": [
583
- "B"
527
+ "blankline"
584
528
  ]
585
- },
586
- "content": {
587
- "type": "array",
588
- "items": {
589
- "$ref": "#/definitions/PodNode"
590
- }
591
529
  }
592
530
  },
593
531
  "required": [
594
- "name",
595
532
  "type"
596
533
  ]
597
534
  },
598
- "FormattingCodeC": {
535
+ "BlockNested": {
599
536
  "type": "object",
600
537
  "properties": {
601
- "type": {
538
+ "name": {
602
539
  "type": "string",
603
540
  "enum": [
604
- "fcode"
541
+ "nested"
605
542
  ]
606
543
  },
607
- "name": {
544
+ "type": {
608
545
  "type": "string",
609
546
  "enum": [
610
- "C"
547
+ "block"
611
548
  ]
612
549
  },
550
+ "location": {
551
+ "$ref": "#/definitions/Location"
552
+ },
613
553
  "content": {
554
+ "type": "array",
555
+ "items": {
556
+ "$ref": "#/definitions/PodNode"
557
+ }
558
+ },
559
+ "margin": {
560
+ "type": "string"
561
+ },
562
+ "config": {
614
563
  "type": "array",
615
564
  "items": {
616
565
  "anyOf": [
617
566
  {
618
- "$ref": "#/definitions/FormattingCodeB"
619
- },
620
- {
621
- "$ref": "#/definitions/FormattingCodeC"
622
- },
623
- {
624
- "$ref": "#/definitions/FormattingCodeE"
625
- },
626
- {
627
- "$ref": "#/definitions/FormattingCodeN"
628
- },
629
- {
630
- "$ref": "#/definitions/FormattingCodeX"
631
- },
632
- {
633
- "$ref": "#/definitions/FormattingCodeZ"
634
- },
635
- {
636
- "$ref": "#/definitions/FormattingCodeV"
637
- },
638
- {
639
- "$ref": "#/definitions/FormattingCodeS"
640
- },
641
- {
642
- "$ref": "#/definitions/FormattingCodeA"
643
- },
644
- {
645
- "$ref": "#/definitions/FormattingCodeD"
646
- },
647
- {
648
- "$ref": "#/definitions/FormattingCodeL"
649
- },
650
- {
651
- "$ref": "#/definitions/FormattingCodeI"
652
- },
653
- {
654
- "$ref": "#/definitions/FormattingCodeAny"
567
+ "$ref": "#/definitions/BrokenConfigItem"
655
568
  },
656
569
  {
657
- "type": "string"
570
+ "$ref": "#/definitions/ConfigItem"
658
571
  }
659
572
  ]
660
573
  }
574
+ },
575
+ "id": {
576
+ "type": "string"
661
577
  }
662
578
  },
663
579
  "required": [
580
+ "content",
581
+ "location",
582
+ "margin",
664
583
  "name",
665
584
  "type"
666
585
  ]
667
586
  },
668
- "FormattingCodeE": {
587
+ "BlockMarkdown": {
669
588
  "type": "object",
670
589
  "properties": {
671
- "type": {
590
+ "name": {
672
591
  "type": "string",
673
592
  "enum": [
674
- "fcode"
593
+ "markdown"
675
594
  ]
676
595
  },
677
- "name": {
596
+ "type": {
678
597
  "type": "string",
679
598
  "enum": [
680
- "E"
599
+ "block"
681
600
  ]
682
601
  },
602
+ "location": {
603
+ "$ref": "#/definitions/Location"
604
+ },
683
605
  "content": {
684
606
  "type": "array",
685
607
  "items": {
686
- "type": "object",
687
- "properties": {
688
- "type": {
689
- "type": "string",
690
- "enum": [
691
- "number"
692
- ]
608
+ "$ref": "#/definitions/PodNode"
609
+ }
610
+ },
611
+ "margin": {
612
+ "type": "string"
613
+ },
614
+ "config": {
615
+ "type": "array",
616
+ "items": {
617
+ "anyOf": [
618
+ {
619
+ "$ref": "#/definitions/BrokenConfigItem"
693
620
  },
694
- "value": {
695
- "type": "number"
621
+ {
622
+ "$ref": "#/definitions/ConfigItem"
696
623
  }
697
- },
698
- "required": [
699
- "type",
700
- "value"
701
624
  ]
702
625
  }
626
+ },
627
+ "id": {
628
+ "type": "string"
703
629
  }
704
630
  },
705
631
  "required": [
706
632
  "content",
633
+ "location",
634
+ "margin",
707
635
  "name",
708
636
  "type"
709
637
  ]
710
638
  },
711
- "FormattingCodeN": {
639
+ "BlockOutput": {
712
640
  "type": "object",
713
641
  "properties": {
714
- "type": {
642
+ "name": {
715
643
  "type": "string",
716
644
  "enum": [
717
- "fcode"
645
+ "output"
718
646
  ]
719
647
  },
720
- "name": {
648
+ "type": {
721
649
  "type": "string",
722
650
  "enum": [
723
- "N"
651
+ "block"
724
652
  ]
725
653
  },
654
+ "location": {
655
+ "$ref": "#/definitions/Location"
656
+ },
726
657
  "content": {
658
+ "type": "array",
659
+ "items": {
660
+ "$ref": "#/definitions/PodNode"
661
+ }
662
+ },
663
+ "margin": {
664
+ "type": "string"
665
+ },
666
+ "config": {
727
667
  "type": "array",
728
668
  "items": {
729
669
  "anyOf": [
730
670
  {
731
- "$ref": "#/definitions/FormattingCodeB"
732
- },
733
- {
734
- "$ref": "#/definitions/FormattingCodeC"
735
- },
736
- {
737
- "$ref": "#/definitions/FormattingCodeE"
738
- },
739
- {
740
- "$ref": "#/definitions/FormattingCodeN"
741
- },
742
- {
743
- "$ref": "#/definitions/FormattingCodeX"
671
+ "$ref": "#/definitions/BrokenConfigItem"
744
672
  },
745
673
  {
746
- "$ref": "#/definitions/FormattingCodeZ"
747
- },
748
- {
749
- "$ref": "#/definitions/FormattingCodeV"
750
- },
751
- {
752
- "$ref": "#/definitions/FormattingCodeS"
753
- },
754
- {
755
- "$ref": "#/definitions/FormattingCodeA"
756
- },
757
- {
758
- "$ref": "#/definitions/FormattingCodeD"
759
- },
760
- {
761
- "$ref": "#/definitions/FormattingCodeL"
762
- },
763
- {
764
- "$ref": "#/definitions/FormattingCodeI"
765
- },
766
- {
767
- "$ref": "#/definitions/FormattingCodeAny"
768
- },
769
- {
770
- "type": "string"
674
+ "$ref": "#/definitions/ConfigItem"
771
675
  }
772
676
  ]
773
677
  }
678
+ },
679
+ "id": {
680
+ "type": "string"
774
681
  }
775
682
  },
776
683
  "required": [
684
+ "content",
685
+ "location",
686
+ "margin",
777
687
  "name",
778
688
  "type"
779
689
  ]
780
690
  },
781
- "FormattingCodeX": {
691
+ "BlockInput": {
782
692
  "type": "object",
783
693
  "properties": {
784
- "type": {
694
+ "name": {
785
695
  "type": "string",
786
696
  "enum": [
787
- "fcode"
697
+ "input"
788
698
  ]
789
699
  },
790
- "name": {
700
+ "type": {
791
701
  "type": "string",
792
702
  "enum": [
793
- "X"
703
+ "block"
794
704
  ]
795
705
  },
796
- "entry": {
797
- "anyOf": [
798
- {
799
- "type": "array",
800
- "items": {
801
- "type": "string"
802
- }
803
- },
804
- {
805
- "type": "null"
806
- }
807
- ]
706
+ "location": {
707
+ "$ref": "#/definitions/Location"
808
708
  },
809
709
  "content": {
710
+ "type": "array",
711
+ "items": {
712
+ "$ref": "#/definitions/PodNode"
713
+ }
714
+ },
715
+ "margin": {
716
+ "type": "string"
717
+ },
718
+ "config": {
810
719
  "type": "array",
811
720
  "items": {
812
721
  "anyOf": [
813
722
  {
814
- "$ref": "#/definitions/FormattingCodeB"
815
- },
816
- {
817
- "$ref": "#/definitions/FormattingCodeC"
818
- },
819
- {
820
- "$ref": "#/definitions/FormattingCodeE"
821
- },
822
- {
823
- "$ref": "#/definitions/FormattingCodeN"
824
- },
825
- {
826
- "$ref": "#/definitions/FormattingCodeX"
827
- },
828
- {
829
- "$ref": "#/definitions/FormattingCodeZ"
830
- },
831
- {
832
- "$ref": "#/definitions/FormattingCodeV"
833
- },
834
- {
835
- "$ref": "#/definitions/FormattingCodeS"
836
- },
837
- {
838
- "$ref": "#/definitions/FormattingCodeA"
839
- },
840
- {
841
- "$ref": "#/definitions/FormattingCodeD"
842
- },
843
- {
844
- "$ref": "#/definitions/FormattingCodeL"
845
- },
846
- {
847
- "$ref": "#/definitions/FormattingCodeI"
848
- },
849
- {
850
- "$ref": "#/definitions/FormattingCodeAny"
723
+ "$ref": "#/definitions/BrokenConfigItem"
851
724
  },
852
725
  {
853
- "type": "string"
726
+ "$ref": "#/definitions/ConfigItem"
854
727
  }
855
728
  ]
856
729
  }
730
+ },
731
+ "id": {
732
+ "type": "string"
857
733
  }
858
734
  },
859
735
  "required": [
860
- "entry",
736
+ "content",
737
+ "location",
738
+ "margin",
861
739
  "name",
862
740
  "type"
863
741
  ]
864
742
  },
865
- "FormattingCodeZ": {
743
+ "BlockPara": {
866
744
  "type": "object",
867
745
  "properties": {
868
- "type": {
746
+ "name": {
869
747
  "type": "string",
870
748
  "enum": [
871
- "fcode"
749
+ "para"
872
750
  ]
873
751
  },
874
- "name": {
752
+ "type": {
875
753
  "type": "string",
876
754
  "enum": [
877
- "Z"
755
+ "block"
878
756
  ]
879
757
  },
758
+ "location": {
759
+ "$ref": "#/definitions/Location"
760
+ },
880
761
  "content": {
762
+ "type": "array",
763
+ "items": {
764
+ "$ref": "#/definitions/PodNode"
765
+ }
766
+ },
767
+ "margin": {
768
+ "type": "string"
769
+ },
770
+ "config": {
771
+ "type": "array",
772
+ "items": {
773
+ "anyOf": [
774
+ {
775
+ "$ref": "#/definitions/BrokenConfigItem"
776
+ },
777
+ {
778
+ "$ref": "#/definitions/ConfigItem"
779
+ }
780
+ ]
781
+ }
782
+ },
783
+ "id": {
881
784
  "type": "string"
882
785
  }
883
786
  },
884
787
  "required": [
788
+ "content",
789
+ "location",
790
+ "margin",
885
791
  "name",
886
792
  "type"
887
793
  ]
888
794
  },
889
- "FormattingCodeV": {
795
+ "BlockHead": {
890
796
  "type": "object",
891
797
  "properties": {
892
- "type": {
798
+ "name": {
893
799
  "type": "string",
894
800
  "enum": [
895
- "fcode"
801
+ "head"
896
802
  ]
897
803
  },
898
- "name": {
804
+ "level": {
805
+ "type": [
806
+ "string",
807
+ "number"
808
+ ]
809
+ },
810
+ "type": {
899
811
  "type": "string",
900
812
  "enum": [
901
- "V"
813
+ "block"
902
814
  ]
903
815
  },
816
+ "location": {
817
+ "$ref": "#/definitions/Location"
818
+ },
904
819
  "content": {
820
+ "type": "array",
821
+ "items": {
822
+ "$ref": "#/definitions/PodNode"
823
+ }
824
+ },
825
+ "margin": {
826
+ "type": "string"
827
+ },
828
+ "config": {
829
+ "type": "array",
830
+ "items": {
831
+ "anyOf": [
832
+ {
833
+ "$ref": "#/definitions/BrokenConfigItem"
834
+ },
835
+ {
836
+ "$ref": "#/definitions/ConfigItem"
837
+ }
838
+ ]
839
+ }
840
+ },
841
+ "id": {
905
842
  "type": "string"
906
843
  }
907
844
  },
908
845
  "required": [
846
+ "content",
847
+ "level",
848
+ "location",
849
+ "margin",
909
850
  "name",
910
851
  "type"
911
852
  ]
912
853
  },
913
- "FormattingCodeS": {
854
+ "BlockComment": {
914
855
  "type": "object",
915
856
  "properties": {
916
- "type": {
857
+ "name": {
917
858
  "type": "string",
918
859
  "enum": [
919
- "fcode"
860
+ "comment"
920
861
  ]
921
862
  },
922
- "name": {
863
+ "type": {
923
864
  "type": "string",
924
865
  "enum": [
925
- "S"
866
+ "block"
926
867
  ]
927
868
  },
869
+ "location": {
870
+ "$ref": "#/definitions/Location"
871
+ },
928
872
  "content": {
929
- "anyOf": [
930
- {
931
- "$ref": "#/definitions/Text"
932
- },
933
- {
934
- "type": "string"
935
- }
936
- ]
873
+ "type": "array",
874
+ "items": {
875
+ "$ref": "#/definitions/PodNode"
876
+ }
877
+ },
878
+ "margin": {
879
+ "type": "string"
880
+ },
881
+ "config": {
882
+ "type": "array",
883
+ "items": {
884
+ "anyOf": [
885
+ {
886
+ "$ref": "#/definitions/BrokenConfigItem"
887
+ },
888
+ {
889
+ "$ref": "#/definitions/ConfigItem"
890
+ }
891
+ ]
892
+ }
893
+ },
894
+ "id": {
895
+ "type": "string"
937
896
  }
938
897
  },
939
898
  "required": [
899
+ "content",
900
+ "location",
901
+ "margin",
940
902
  "name",
941
903
  "type"
942
904
  ]
943
905
  },
944
- "Text": {
906
+ "BlockDefn": {
945
907
  "type": "object",
946
908
  "properties": {
909
+ "name": {
910
+ "type": "string",
911
+ "enum": [
912
+ "defn"
913
+ ]
914
+ },
947
915
  "type": {
948
916
  "type": "string",
949
917
  "enum": [
950
- "text"
918
+ "block"
951
919
  ]
952
920
  },
953
- "value": {
954
- "type": "string"
955
- }
956
- },
957
- "required": [
958
- "type",
959
- "value"
960
- ]
961
- },
962
- "FormattingCodeA": {
963
- "type": "object",
964
- "properties": {
965
- "type": {
966
- "type": "string",
967
- "enum": [
968
- "fcode"
969
- ]
970
- },
971
- "name": {
972
- "type": "string",
973
- "enum": [
974
- "A"
975
- ]
921
+ "location": {
922
+ "$ref": "#/definitions/Location"
976
923
  },
977
924
  "content": {
978
- "anyOf": [
979
- {
980
- "$ref": "#/definitions/Text"
981
- },
982
- {
983
- "type": "string"
984
- }
985
- ]
925
+ "type": "array",
926
+ "items": {
927
+ "$ref": "#/definitions/PodNode"
928
+ }
929
+ },
930
+ "margin": {
931
+ "type": "string"
932
+ },
933
+ "config": {
934
+ "type": "array",
935
+ "items": {
936
+ "anyOf": [
937
+ {
938
+ "$ref": "#/definitions/BrokenConfigItem"
939
+ },
940
+ {
941
+ "$ref": "#/definitions/ConfigItem"
942
+ }
943
+ ]
944
+ }
945
+ },
946
+ "id": {
947
+ "type": "string"
986
948
  }
987
949
  },
988
950
  "required": [
989
951
  "content",
952
+ "location",
953
+ "margin",
990
954
  "name",
991
955
  "type"
992
956
  ]
993
957
  },
994
- "FormattingCodeD": {
958
+ "Para": {
995
959
  "type": "object",
996
960
  "properties": {
997
961
  "type": {
998
962
  "type": "string",
999
963
  "enum": [
1000
- "fcode"
964
+ "para"
1001
965
  ]
1002
966
  },
1003
- "name": {
1004
- "type": "string",
1005
- "enum": [
1006
- "D"
1007
- ]
967
+ "text": {
968
+ "type": "string"
1008
969
  },
1009
- "synonyms": {
970
+ "margin": {
971
+ "type": "string"
972
+ },
973
+ "location": {
974
+ "$ref": "#/definitions/Location"
975
+ },
976
+ "content": {
1010
977
  "type": "array",
1011
978
  "items": {
1012
- "type": "string"
979
+ "anyOf": [
980
+ {
981
+ "$ref": "#/definitions/Ambient"
982
+ },
983
+ {
984
+ "$ref": "#/definitions/BlockPod"
985
+ },
986
+ {
987
+ "$ref": "#/definitions/BlockData"
988
+ },
989
+ {
990
+ "$ref": "#/definitions/BlockFormula"
991
+ },
992
+ {
993
+ "$ref": "#/definitions/BlockCode"
994
+ },
995
+ {
996
+ "$ref": "#/definitions/BlankLine"
997
+ },
998
+ {
999
+ "$ref": "#/definitions/BlockNested"
1000
+ },
1001
+ {
1002
+ "$ref": "#/definitions/BlockMarkdown"
1003
+ },
1004
+ {
1005
+ "$ref": "#/definitions/BlockOutput"
1006
+ },
1007
+ {
1008
+ "$ref": "#/definitions/BlockInput"
1009
+ },
1010
+ {
1011
+ "$ref": "#/definitions/BlockPara"
1012
+ },
1013
+ {
1014
+ "$ref": "#/definitions/BlockHead"
1015
+ },
1016
+ {
1017
+ "$ref": "#/definitions/BlockComment"
1018
+ },
1019
+ {
1020
+ "$ref": "#/definitions/BlockDefn"
1021
+ },
1022
+ {
1023
+ "$ref": "#/definitions/Para"
1024
+ },
1025
+ {
1026
+ "$ref": "#/definitions/Text"
1027
+ },
1028
+ {
1029
+ "$ref": "#/definitions/Code"
1030
+ },
1031
+ {
1032
+ "$ref": "#/definitions/BlockNamed"
1033
+ },
1034
+ {
1035
+ "$ref": "#/definitions/Verbatim"
1036
+ },
1037
+ {
1038
+ "$ref": "#/definitions/BlockTable"
1039
+ },
1040
+ {
1041
+ "$ref": "#/definitions/List"
1042
+ },
1043
+ {
1044
+ "$ref": "#/definitions/BlockConfig"
1045
+ },
1046
+ {
1047
+ "$ref": "#/definitions/BlockItem"
1048
+ },
1049
+ {
1050
+ "$ref": "#/definitions/Alias"
1051
+ },
1052
+ {
1053
+ "$ref": "#/definitions/BlockToc"
1054
+ },
1055
+ {
1056
+ "$ref": "#/definitions/BlockPicture"
1057
+ },
1058
+ {
1059
+ "$ref": "#/definitions/BlockImage"
1060
+ },
1061
+ {
1062
+ "$ref": "#/definitions/Image"
1063
+ },
1064
+ {
1065
+ "$ref": "#/definitions/RootBlock"
1066
+ },
1067
+ {
1068
+ "$ref": "#/definitions/Separator"
1069
+ },
1070
+ {
1071
+ "$ref": "#/definitions/BlockCaption"
1072
+ },
1073
+ {
1074
+ "$ref": "#/definitions/FormattingCodeA"
1075
+ },
1076
+ {
1077
+ "$ref": "#/definitions/FormattingCodeC"
1078
+ },
1079
+ {
1080
+ "$ref": "#/definitions/FormattingCodeB"
1081
+ },
1082
+ {
1083
+ "$ref": "#/definitions/FormattingCodeD"
1084
+ },
1085
+ {
1086
+ "$ref": "#/definitions/FormattingCodeE"
1087
+ },
1088
+ {
1089
+ "$ref": "#/definitions/FormattingCodeF"
1090
+ },
1091
+ {
1092
+ "$ref": "#/definitions/FormattingCodeI"
1093
+ },
1094
+ {
1095
+ "$ref": "#/definitions/FormattingCodeL"
1096
+ },
1097
+ {
1098
+ "$ref": "#/definitions/FormattingCodeN"
1099
+ },
1100
+ {
1101
+ "$ref": "#/definitions/FormattingCodeX"
1102
+ },
1103
+ {
1104
+ "$ref": "#/definitions/FormattingCodeZ"
1105
+ },
1106
+ {
1107
+ "$ref": "#/definitions/FormattingCodeV"
1108
+ },
1109
+ {
1110
+ "$ref": "#/definitions/FormattingCodeS"
1111
+ },
1112
+ {
1113
+ "$ref": "#/definitions/FormattingCodeAny"
1114
+ },
1115
+ {
1116
+ "$ref": "#/definitions/Toc"
1117
+ },
1118
+ {
1119
+ "type": "string"
1120
+ }
1121
+ ]
1013
1122
  }
1014
- },
1015
- "content": {
1016
- "type": "string"
1017
1123
  }
1018
1124
  },
1019
1125
  "required": [
1020
1126
  "content",
1021
- "name",
1022
- "synonyms",
1127
+ "location",
1128
+ "margin",
1129
+ "text",
1023
1130
  "type"
1024
1131
  ]
1025
1132
  },
1026
- "FormattingCodeL": {
1133
+ "Text": {
1027
1134
  "type": "object",
1028
1135
  "properties": {
1029
1136
  "type": {
1030
1137
  "type": "string",
1031
1138
  "enum": [
1032
- "fcode"
1139
+ "text"
1033
1140
  ]
1034
1141
  },
1035
- "name": {
1142
+ "value": {
1143
+ "type": "string"
1144
+ }
1145
+ },
1146
+ "required": [
1147
+ "type",
1148
+ "value"
1149
+ ]
1150
+ },
1151
+ "Code": {
1152
+ "type": "object",
1153
+ "properties": {
1154
+ "type": {
1036
1155
  "type": "string",
1037
1156
  "enum": [
1038
- "L"
1157
+ "code"
1039
1158
  ]
1040
1159
  },
1041
- "meta": {
1042
- "type": [
1043
- "null",
1044
- "string"
1045
- ]
1160
+ "text": {
1161
+ "type": "string"
1162
+ },
1163
+ "margin": {
1164
+ "type": "string"
1165
+ },
1166
+ "location": {
1167
+ "$ref": "#/definitions/Location"
1046
1168
  },
1047
1169
  "content": {
1048
- "anyOf": [
1049
- {
1050
- "$ref": "#/definitions/Text"
1051
- },
1052
- {
1053
- "type": "string"
1054
- }
1055
- ]
1170
+ "type": "array",
1171
+ "items": {
1172
+ "anyOf": [
1173
+ {
1174
+ "$ref": "#/definitions/Verbatim"
1175
+ },
1176
+ {
1177
+ "type": "string"
1178
+ }
1179
+ ]
1180
+ }
1056
1181
  }
1057
1182
  },
1058
1183
  "required": [
1059
1184
  "content",
1060
- "meta",
1061
- "name",
1185
+ "location",
1186
+ "margin",
1187
+ "text",
1062
1188
  "type"
1063
1189
  ]
1064
1190
  },
1065
- "FormattingCodeI": {
1191
+ "BlockNamed": {
1066
1192
  "type": "object",
1067
1193
  "properties": {
1068
- "type": {
1069
- "type": "string",
1070
- "enum": [
1071
- "fcode"
1072
- ]
1073
- },
1074
1194
  "name": {
1075
- "type": "string",
1076
- "enum": [
1077
- "I"
1078
- ]
1079
- },
1080
- "meta": {
1081
1195
  "type": "string"
1082
1196
  },
1083
1197
  "content": {
1084
1198
  "anyOf": [
1085
1199
  {
1086
- "$ref": "#/definitions/Text"
1200
+ "$ref": "#/definitions/RootBlock"
1087
1201
  },
1088
1202
  {
1089
- "type": "string"
1203
+ "type": "array",
1204
+ "items": [
1205
+ {
1206
+ "anyOf": [
1207
+ {
1208
+ "$ref": "#/definitions/Para"
1209
+ },
1210
+ {
1211
+ "$ref": "#/definitions/Code"
1212
+ },
1213
+ {
1214
+ "$ref": "#/definitions/Verbatim"
1215
+ }
1216
+ ]
1217
+ }
1218
+ ],
1219
+ "minItems": 0,
1220
+ "maxItems": 1
1221
+ },
1222
+ {
1223
+ "type": "array",
1224
+ "items": {
1225
+ "anyOf": [
1226
+ {
1227
+ "$ref": "#/definitions/Image"
1228
+ },
1229
+ {
1230
+ "$ref": "#/definitions/BlockCaption"
1231
+ }
1232
+ ]
1233
+ }
1090
1234
  }
1091
1235
  ]
1236
+ },
1237
+ "margin": {
1238
+ "type": "string"
1239
+ },
1240
+ "type": {
1241
+ "type": "string",
1242
+ "enum": [
1243
+ "block"
1244
+ ]
1245
+ },
1246
+ "location": {
1247
+ "$ref": "#/definitions/Location"
1248
+ },
1249
+ "config": {
1250
+ "type": "array",
1251
+ "items": {
1252
+ "anyOf": [
1253
+ {
1254
+ "$ref": "#/definitions/BrokenConfigItem"
1255
+ },
1256
+ {
1257
+ "$ref": "#/definitions/ConfigItem"
1258
+ }
1259
+ ]
1260
+ }
1261
+ },
1262
+ "id": {
1263
+ "type": "string"
1092
1264
  }
1093
1265
  },
1094
1266
  "required": [
1095
1267
  "content",
1096
- "meta",
1268
+ "location",
1269
+ "margin",
1097
1270
  "name",
1098
1271
  "type"
1099
1272
  ]
1100
1273
  },
1101
- "FormattingCodeAny": {
1274
+ "RootBlock": {
1102
1275
  "type": "object",
1103
1276
  "properties": {
1104
- "type": {
1277
+ "name": {
1105
1278
  "type": "string",
1106
1279
  "enum": [
1107
- "fcode"
1280
+ "root"
1108
1281
  ]
1109
1282
  },
1110
- "name": {
1283
+ "content": {
1284
+ "$ref": "#/definitions/AstTree"
1285
+ },
1286
+ "margin": {
1111
1287
  "type": "string"
1112
1288
  },
1113
- "content": {
1289
+ "type": {
1290
+ "type": "string",
1291
+ "enum": [
1292
+ "block"
1293
+ ]
1294
+ },
1295
+ "config": {
1114
1296
  "type": "array",
1115
1297
  "items": {
1116
1298
  "anyOf": [
1117
1299
  {
1118
- "$ref": "#/definitions/FormattingCodeB"
1119
- },
1120
- {
1121
- "$ref": "#/definitions/FormattingCodeC"
1122
- },
1123
- {
1124
- "$ref": "#/definitions/FormattingCodeE"
1125
- },
1126
- {
1127
- "$ref": "#/definitions/FormattingCodeN"
1128
- },
1129
- {
1130
- "$ref": "#/definitions/FormattingCodeX"
1131
- },
1132
- {
1133
- "$ref": "#/definitions/FormattingCodeZ"
1134
- },
1135
- {
1136
- "$ref": "#/definitions/FormattingCodeV"
1137
- },
1138
- {
1139
- "$ref": "#/definitions/FormattingCodeS"
1140
- },
1141
- {
1142
- "$ref": "#/definitions/FormattingCodeA"
1143
- },
1144
- {
1145
- "$ref": "#/definitions/FormattingCodeD"
1146
- },
1147
- {
1148
- "$ref": "#/definitions/FormattingCodeL"
1149
- },
1150
- {
1151
- "$ref": "#/definitions/FormattingCodeI"
1152
- },
1153
- {
1154
- "$ref": "#/definitions/FormattingCodeAny"
1300
+ "$ref": "#/definitions/BrokenConfigItem"
1155
1301
  },
1156
1302
  {
1157
- "type": "string"
1303
+ "$ref": "#/definitions/ConfigItem"
1158
1304
  }
1159
1305
  ]
1160
1306
  }
1307
+ },
1308
+ "id": {
1309
+ "type": "string"
1161
1310
  }
1162
1311
  },
1163
1312
  "required": [
1313
+ "content",
1314
+ "margin",
1164
1315
  "name",
1165
1316
  "type"
1166
1317
  ]
1167
1318
  },
1168
- "Ambient": {
1319
+ "AstTree": {
1320
+ "type": "array",
1321
+ "items": {
1322
+ "$ref": "#/definitions/PodNode"
1323
+ }
1324
+ },
1325
+ "Image": {
1169
1326
  "type": "object",
1170
1327
  "properties": {
1171
1328
  "type": {
1172
1329
  "type": "string",
1173
1330
  "enum": [
1174
- "ambient"
1331
+ "image"
1175
1332
  ]
1176
1333
  },
1177
- "text": {
1334
+ "src": {
1178
1335
  "type": "string"
1179
1336
  },
1180
- "location": {
1181
- "$ref": "#/definitions/Location"
1337
+ "alt": {
1338
+ "type": "string"
1182
1339
  }
1183
1340
  },
1184
1341
  "required": [
1185
- "location",
1186
- "text",
1342
+ "src",
1187
1343
  "type"
1188
1344
  ]
1189
1345
  },
1190
- "Verbatim": {
1346
+ "BlockCaption": {
1191
1347
  "type": "object",
1192
1348
  "properties": {
1193
- "type": {
1349
+ "name": {
1194
1350
  "type": "string",
1195
1351
  "enum": [
1196
- "verbatim"
1352
+ "caption"
1197
1353
  ]
1198
1354
  },
1199
- "value": {
1200
- "type": "string"
1355
+ "content": {
1356
+ "type": "array",
1357
+ "items": {
1358
+ "$ref": "#/definitions/PodNode"
1359
+ }
1360
+ },
1361
+ "type": {
1362
+ "type": "string",
1363
+ "enum": [
1364
+ "block"
1365
+ ]
1201
1366
  }
1202
1367
  },
1203
1368
  "required": [
1204
- "type",
1205
- "value"
1369
+ "content",
1370
+ "name",
1371
+ "type"
1206
1372
  ]
1207
1373
  },
1208
- "Para": {
1374
+ "BlockTable": {
1209
1375
  "type": "object",
1210
1376
  "properties": {
1211
- "type": {
1377
+ "name": {
1212
1378
  "type": "string",
1213
1379
  "enum": [
1214
- "para"
1380
+ "table"
1215
1381
  ]
1216
1382
  },
1217
- "text": {
1218
- "type": "string"
1219
- },
1220
- "margin": {
1221
- "type": "string"
1222
- },
1223
- "location": {
1224
- "$ref": "#/definitions/Location"
1225
- },
1226
1383
  "content": {
1227
1384
  "type": "array",
1228
1385
  "items": {
1229
1386
  "anyOf": [
1230
- {
1231
- "$ref": "#/definitions/Image"
1232
- },
1233
- {
1234
- "$ref": "#/definitions/Toc"
1235
- },
1236
- {
1237
- "$ref": "#/definitions/BlockImage"
1238
- },
1239
- {
1240
- "$ref": "#/definitions/BlockPicture"
1241
- },
1242
- {
1243
- "$ref": "#/definitions/BlockCaption"
1244
- },
1245
- {
1246
- "$ref": "#/definitions/RootBlock"
1247
- },
1248
- {
1249
- "$ref": "#/definitions/FormattingCodeB"
1250
- },
1251
- {
1252
- "$ref": "#/definitions/FormattingCodeC"
1253
- },
1254
- {
1255
- "$ref": "#/definitions/FormattingCodeE"
1256
- },
1257
- {
1258
- "$ref": "#/definitions/FormattingCodeN"
1259
- },
1260
- {
1261
- "$ref": "#/definitions/FormattingCodeX"
1262
- },
1263
- {
1264
- "$ref": "#/definitions/FormattingCodeZ"
1265
- },
1266
- {
1267
- "$ref": "#/definitions/FormattingCodeV"
1268
- },
1269
- {
1270
- "$ref": "#/definitions/FormattingCodeS"
1271
- },
1272
- {
1273
- "$ref": "#/definitions/FormattingCodeA"
1274
- },
1275
- {
1276
- "$ref": "#/definitions/FormattingCodeD"
1277
- },
1278
- {
1279
- "$ref": "#/definitions/FormattingCodeL"
1280
- },
1281
- {
1282
- "$ref": "#/definitions/FormattingCodeI"
1283
- },
1284
- {
1285
- "$ref": "#/definitions/FormattingCodeAny"
1286
- },
1287
- {
1288
- "$ref": "#/definitions/Ambient"
1289
- },
1290
- {
1291
- "$ref": "#/definitions/Verbatim"
1292
- },
1293
- {
1294
- "$ref": "#/definitions/Text"
1295
- },
1296
- {
1297
- "$ref": "#/definitions/Para"
1298
- },
1299
- {
1300
- "$ref": "#/definitions/Code"
1301
- },
1302
1387
  {
1303
1388
  "$ref": "#/definitions/BlankLine"
1304
1389
  },
1305
1390
  {
1306
- "$ref": "#/definitions/List"
1307
- },
1308
- {
1309
- "$ref": "#/definitions/BlockConfig"
1310
- },
1311
- {
1312
- "$ref": "#/definitions/Alias"
1313
- },
1314
- {
1315
- "$ref": "#/definitions/Separator"
1316
- },
1317
- {
1318
- "$ref": "#/definitions/BlockPod"
1319
- },
1320
- {
1321
- "$ref": "#/definitions/BlockData"
1322
- },
1323
- {
1324
- "$ref": "#/definitions/BlockComment"
1325
- },
1326
- {
1327
- "$ref": "#/definitions/BlockDefn"
1328
- },
1329
- {
1330
- "$ref": "#/definitions/BlockItem"
1331
- },
1332
- {
1333
- "$ref": "#/definitions/BlockOutput"
1334
- },
1335
- {
1336
- "$ref": "#/definitions/BlockInput"
1337
- },
1338
- {
1339
- "$ref": "#/definitions/BlockPara"
1340
- },
1341
- {
1342
- "$ref": "#/definitions/BlockCode"
1343
- },
1344
- {
1345
- "$ref": "#/definitions/BlockToc"
1346
- },
1347
- {
1348
- "$ref": "#/definitions/BlockMarkdown"
1349
- },
1350
- {
1351
- "$ref": "#/definitions/BlockNested"
1391
+ "$ref": "#/definitions/TableRow"
1352
1392
  },
1353
1393
  {
1354
- "$ref": "#/definitions/BlockHead"
1394
+ "$ref": "#/definitions/TableHead"
1355
1395
  },
1356
1396
  {
1357
- "$ref": "#/definitions/BlockTable"
1358
- },
1397
+ "$ref": "#/definitions/TableSeparator"
1398
+ }
1399
+ ]
1400
+ }
1401
+ },
1402
+ "text": {
1403
+ "type": "string"
1404
+ },
1405
+ "margin": {
1406
+ "type": "string"
1407
+ },
1408
+ "type": {
1409
+ "type": "string",
1410
+ "enum": [
1411
+ "block"
1412
+ ]
1413
+ },
1414
+ "location": {
1415
+ "$ref": "#/definitions/Location"
1416
+ },
1417
+ "config": {
1418
+ "type": "array",
1419
+ "items": {
1420
+ "anyOf": [
1359
1421
  {
1360
- "$ref": "#/definitions/BlockNamed"
1422
+ "$ref": "#/definitions/BrokenConfigItem"
1361
1423
  },
1362
1424
  {
1363
- "type": "string"
1425
+ "$ref": "#/definitions/ConfigItem"
1364
1426
  }
1365
1427
  ]
1366
1428
  }
1429
+ },
1430
+ "id": {
1431
+ "type": "string"
1367
1432
  }
1368
1433
  },
1369
1434
  "required": [
1370
1435
  "content",
1371
1436
  "location",
1372
1437
  "margin",
1373
- "text",
1438
+ "name",
1374
1439
  "type"
1375
1440
  ]
1376
1441
  },
1377
- "Code": {
1442
+ "TableRow": {
1378
1443
  "type": "object",
1379
1444
  "properties": {
1445
+ "name": {
1446
+ "type": "string",
1447
+ "enum": [
1448
+ "table_row"
1449
+ ]
1450
+ },
1380
1451
  "type": {
1381
1452
  "type": "string",
1382
1453
  "enum": [
1383
- "code"
1454
+ "block"
1384
1455
  ]
1385
1456
  },
1386
- "text": {
1387
- "type": "string"
1457
+ "content": {
1458
+ "type": "array",
1459
+ "items": {
1460
+ "$ref": "#/definitions/TableCell"
1461
+ }
1462
+ }
1463
+ },
1464
+ "required": [
1465
+ "content",
1466
+ "name",
1467
+ "type"
1468
+ ]
1469
+ },
1470
+ "TableCell": {
1471
+ "type": "object",
1472
+ "properties": {
1473
+ "name": {
1474
+ "type": "string",
1475
+ "enum": [
1476
+ "table_cell"
1477
+ ]
1388
1478
  },
1389
- "margin": {
1390
- "type": "string"
1479
+ "type": {
1480
+ "type": "string",
1481
+ "enum": [
1482
+ "block"
1483
+ ]
1391
1484
  },
1392
- "location": {
1393
- "$ref": "#/definitions/Location"
1485
+ "content": {
1486
+ "type": "array",
1487
+ "items": {
1488
+ "type": "string"
1489
+ }
1490
+ }
1491
+ },
1492
+ "required": [
1493
+ "content",
1494
+ "name",
1495
+ "type"
1496
+ ]
1497
+ },
1498
+ "TableHead": {
1499
+ "type": "object",
1500
+ "properties": {
1501
+ "name": {
1502
+ "type": "string",
1503
+ "enum": [
1504
+ "table_head"
1505
+ ]
1506
+ },
1507
+ "type": {
1508
+ "type": "string",
1509
+ "enum": [
1510
+ "block"
1511
+ ]
1394
1512
  },
1395
1513
  "content": {
1396
1514
  "type": "array",
1397
1515
  "items": {
1398
- "anyOf": [
1399
- {
1400
- "$ref": "#/definitions/Verbatim"
1401
- },
1402
- {
1403
- "type": "string"
1404
- }
1405
- ]
1516
+ "$ref": "#/definitions/TableCell"
1406
1517
  }
1407
1518
  }
1408
1519
  },
1409
1520
  "required": [
1410
1521
  "content",
1411
- "location",
1412
- "margin",
1413
- "text",
1522
+ "name",
1414
1523
  "type"
1415
1524
  ]
1416
1525
  },
1417
- "BlankLine": {
1526
+ "TableSeparator": {
1418
1527
  "type": "object",
1419
1528
  "properties": {
1420
1529
  "type": {
1421
1530
  "type": "string",
1422
1531
  "enum": [
1423
- "blankline"
1532
+ "separator"
1424
1533
  ]
1534
+ },
1535
+ "text": {
1536
+ "type": "string"
1425
1537
  }
1426
1538
  },
1427
1539
  "required": [
1540
+ "text",
1428
1541
  "type"
1429
1542
  ]
1430
1543
  },
@@ -1590,31 +1703,13 @@
1590
1703
  "type"
1591
1704
  ]
1592
1705
  },
1593
- "Separator": {
1594
- "type": "object",
1595
- "properties": {
1596
- "type": {
1597
- "type": "string",
1598
- "enum": [
1599
- "separator"
1600
- ]
1601
- },
1602
- "text": {
1603
- "type": "string"
1604
- }
1605
- },
1606
- "required": [
1607
- "text",
1608
- "type"
1609
- ]
1610
- },
1611
- "BlockPod": {
1706
+ "BlockToc": {
1612
1707
  "type": "object",
1613
1708
  "properties": {
1614
1709
  "name": {
1615
1710
  "type": "string",
1616
1711
  "enum": [
1617
- "pod"
1712
+ "toc"
1618
1713
  ]
1619
1714
  },
1620
1715
  "type": {
@@ -1660,119 +1755,37 @@
1660
1755
  "type"
1661
1756
  ]
1662
1757
  },
1663
- "BlockData": {
1758
+ "BlockPicture": {
1664
1759
  "type": "object",
1665
1760
  "properties": {
1666
1761
  "name": {
1667
1762
  "type": "string",
1668
1763
  "enum": [
1669
- "data"
1670
- ]
1671
- },
1672
- "type": {
1673
- "type": "string",
1674
- "enum": [
1675
- "block"
1764
+ "picture"
1676
1765
  ]
1677
1766
  },
1678
- "location": {
1679
- "$ref": "#/definitions/Location"
1680
- },
1681
- "content": {
1682
- "type": "array",
1683
- "items": {
1684
- "$ref": "#/definitions/PodNode"
1685
- }
1686
- },
1687
- "margin": {
1767
+ "caption": {
1688
1768
  "type": "string"
1689
1769
  },
1690
- "config": {
1691
- "type": "array",
1692
- "items": {
1693
- "anyOf": [
1694
- {
1695
- "$ref": "#/definitions/BrokenConfigItem"
1696
- },
1697
- {
1698
- "$ref": "#/definitions/ConfigItem"
1699
- }
1700
- ]
1701
- }
1702
- },
1703
- "id": {
1770
+ "link": {
1704
1771
  "type": "string"
1705
- }
1706
- },
1707
- "required": [
1708
- "content",
1709
- "location",
1710
- "margin",
1711
- "name",
1712
- "type"
1713
- ]
1714
- },
1715
- "BlockComment": {
1716
- "type": "object",
1717
- "properties": {
1718
- "name": {
1719
- "type": "string",
1720
- "enum": [
1721
- "comment"
1722
- ]
1723
- },
1724
- "type": {
1725
- "type": "string",
1726
- "enum": [
1727
- "block"
1728
- ]
1729
- },
1730
- "location": {
1731
- "$ref": "#/definitions/Location"
1732
1772
  },
1733
1773
  "content": {
1734
1774
  "type": "array",
1735
- "items": {
1736
- "$ref": "#/definitions/PodNode"
1737
- }
1775
+ "items": [
1776
+ {
1777
+ "$ref": "#/definitions/Image"
1778
+ },
1779
+ {
1780
+ "$ref": "#/definitions/BlockCaption"
1781
+ }
1782
+ ],
1783
+ "minItems": 2,
1784
+ "maxItems": 2
1738
1785
  },
1739
1786
  "margin": {
1740
1787
  "type": "string"
1741
1788
  },
1742
- "config": {
1743
- "type": "array",
1744
- "items": {
1745
- "anyOf": [
1746
- {
1747
- "$ref": "#/definitions/BrokenConfigItem"
1748
- },
1749
- {
1750
- "$ref": "#/definitions/ConfigItem"
1751
- }
1752
- ]
1753
- }
1754
- },
1755
- "id": {
1756
- "type": "string"
1757
- }
1758
- },
1759
- "required": [
1760
- "content",
1761
- "location",
1762
- "margin",
1763
- "name",
1764
- "type"
1765
- ]
1766
- },
1767
- "BlockDefn": {
1768
- "type": "object",
1769
- "properties": {
1770
- "name": {
1771
- "type": "string",
1772
- "enum": [
1773
- "defn"
1774
- ]
1775
- },
1776
1789
  "type": {
1777
1790
  "type": "string",
1778
1791
  "enum": [
@@ -1780,16 +1793,7 @@
1780
1793
  ]
1781
1794
  },
1782
1795
  "location": {
1783
- "$ref": "#/definitions/Location"
1784
- },
1785
- "content": {
1786
- "type": "array",
1787
- "items": {
1788
- "$ref": "#/definitions/PodNode"
1789
- }
1790
- },
1791
- "margin": {
1792
- "type": "string"
1796
+ "$ref": "#/definitions/Location"
1793
1797
  },
1794
1798
  "config": {
1795
1799
  "type": "array",
@@ -1816,15 +1820,37 @@
1816
1820
  "type"
1817
1821
  ]
1818
1822
  },
1819
- "BlockOutput": {
1823
+ "BlockImage": {
1820
1824
  "type": "object",
1821
1825
  "properties": {
1822
1826
  "name": {
1823
1827
  "type": "string",
1824
1828
  "enum": [
1825
- "output"
1829
+ "image"
1826
1830
  ]
1827
1831
  },
1832
+ "caption": {
1833
+ "type": "string"
1834
+ },
1835
+ "link": {
1836
+ "type": "string"
1837
+ },
1838
+ "content": {
1839
+ "type": "array",
1840
+ "items": [
1841
+ {
1842
+ "$ref": "#/definitions/Image"
1843
+ },
1844
+ {
1845
+ "$ref": "#/definitions/BlockCaption"
1846
+ }
1847
+ ],
1848
+ "minItems": 2,
1849
+ "maxItems": 2
1850
+ },
1851
+ "margin": {
1852
+ "type": "string"
1853
+ },
1828
1854
  "type": {
1829
1855
  "type": "string",
1830
1856
  "enum": [
@@ -1834,15 +1860,6 @@
1834
1860
  "location": {
1835
1861
  "$ref": "#/definitions/Location"
1836
1862
  },
1837
- "content": {
1838
- "type": "array",
1839
- "items": {
1840
- "$ref": "#/definitions/PodNode"
1841
- }
1842
- },
1843
- "margin": {
1844
- "type": "string"
1845
- },
1846
1863
  "config": {
1847
1864
  "type": "array",
1848
1865
  "items": {
@@ -1868,384 +1885,498 @@
1868
1885
  "type"
1869
1886
  ]
1870
1887
  },
1871
- "BlockInput": {
1888
+ "Separator": {
1872
1889
  "type": "object",
1873
1890
  "properties": {
1874
- "name": {
1891
+ "type": {
1875
1892
  "type": "string",
1876
1893
  "enum": [
1877
- "input"
1894
+ "separator"
1878
1895
  ]
1879
1896
  },
1897
+ "text": {
1898
+ "type": "string"
1899
+ }
1900
+ },
1901
+ "required": [
1902
+ "text",
1903
+ "type"
1904
+ ]
1905
+ },
1906
+ "FormattingCodeA": {
1907
+ "type": "object",
1908
+ "properties": {
1880
1909
  "type": {
1881
1910
  "type": "string",
1882
1911
  "enum": [
1883
- "block"
1912
+ "fcode"
1884
1913
  ]
1885
1914
  },
1886
- "location": {
1887
- "$ref": "#/definitions/Location"
1915
+ "name": {
1916
+ "type": "string",
1917
+ "enum": [
1918
+ "A"
1919
+ ]
1888
1920
  },
1889
1921
  "content": {
1890
- "type": "array",
1891
- "items": {
1892
- "$ref": "#/definitions/PodNode"
1893
- }
1894
- },
1895
- "margin": {
1896
- "type": "string"
1897
- },
1898
- "config": {
1899
- "type": "array",
1900
- "items": {
1901
- "anyOf": [
1902
- {
1903
- "$ref": "#/definitions/BrokenConfigItem"
1904
- },
1905
- {
1906
- "$ref": "#/definitions/ConfigItem"
1907
- }
1908
- ]
1909
- }
1910
- },
1911
- "id": {
1912
- "type": "string"
1922
+ "anyOf": [
1923
+ {
1924
+ "$ref": "#/definitions/Text"
1925
+ },
1926
+ {
1927
+ "type": "string"
1928
+ }
1929
+ ]
1913
1930
  }
1914
1931
  },
1915
1932
  "required": [
1916
1933
  "content",
1917
- "location",
1918
- "margin",
1919
1934
  "name",
1920
1935
  "type"
1921
1936
  ]
1922
1937
  },
1923
- "BlockPara": {
1938
+ "FormattingCodeC": {
1924
1939
  "type": "object",
1925
1940
  "properties": {
1926
- "name": {
1941
+ "type": {
1927
1942
  "type": "string",
1928
1943
  "enum": [
1929
- "para"
1944
+ "fcode"
1930
1945
  ]
1931
1946
  },
1932
- "type": {
1947
+ "name": {
1933
1948
  "type": "string",
1934
1949
  "enum": [
1935
- "block"
1950
+ "C"
1936
1951
  ]
1937
1952
  },
1938
- "location": {
1939
- "$ref": "#/definitions/Location"
1940
- },
1941
1953
  "content": {
1942
- "type": "array",
1943
- "items": {
1944
- "$ref": "#/definitions/PodNode"
1945
- }
1946
- },
1947
- "margin": {
1948
- "type": "string"
1949
- },
1950
- "config": {
1951
1954
  "type": "array",
1952
1955
  "items": {
1953
1956
  "anyOf": [
1954
1957
  {
1955
- "$ref": "#/definitions/BrokenConfigItem"
1958
+ "$ref": "#/definitions/FormattingCodeA"
1956
1959
  },
1957
1960
  {
1958
- "$ref": "#/definitions/ConfigItem"
1961
+ "$ref": "#/definitions/FormattingCodeC"
1962
+ },
1963
+ {
1964
+ "$ref": "#/definitions/FormattingCodeB"
1965
+ },
1966
+ {
1967
+ "$ref": "#/definitions/FormattingCodeD"
1968
+ },
1969
+ {
1970
+ "$ref": "#/definitions/FormattingCodeE"
1971
+ },
1972
+ {
1973
+ "$ref": "#/definitions/FormattingCodeF"
1974
+ },
1975
+ {
1976
+ "$ref": "#/definitions/FormattingCodeI"
1977
+ },
1978
+ {
1979
+ "$ref": "#/definitions/FormattingCodeL"
1980
+ },
1981
+ {
1982
+ "$ref": "#/definitions/FormattingCodeN"
1983
+ },
1984
+ {
1985
+ "$ref": "#/definitions/FormattingCodeX"
1986
+ },
1987
+ {
1988
+ "$ref": "#/definitions/FormattingCodeZ"
1989
+ },
1990
+ {
1991
+ "$ref": "#/definitions/FormattingCodeV"
1992
+ },
1993
+ {
1994
+ "$ref": "#/definitions/FormattingCodeS"
1995
+ },
1996
+ {
1997
+ "$ref": "#/definitions/FormattingCodeAny"
1998
+ },
1999
+ {
2000
+ "type": "string"
1959
2001
  }
1960
2002
  ]
1961
2003
  }
1962
- },
1963
- "id": {
1964
- "type": "string"
1965
2004
  }
1966
2005
  },
1967
2006
  "required": [
1968
- "content",
1969
- "location",
1970
- "margin",
1971
2007
  "name",
1972
2008
  "type"
1973
2009
  ]
1974
2010
  },
1975
- "BlockCode": {
2011
+ "FormattingCodeB": {
1976
2012
  "type": "object",
1977
2013
  "properties": {
1978
- "name": {
2014
+ "type": {
1979
2015
  "type": "string",
1980
2016
  "enum": [
1981
- "code"
2017
+ "fcode"
1982
2018
  ]
1983
2019
  },
1984
- "type": {
2020
+ "name": {
1985
2021
  "type": "string",
1986
2022
  "enum": [
1987
- "block"
2023
+ "B"
1988
2024
  ]
1989
2025
  },
1990
- "location": {
1991
- "$ref": "#/definitions/Location"
1992
- },
1993
2026
  "content": {
1994
2027
  "type": "array",
1995
2028
  "items": {
1996
2029
  "$ref": "#/definitions/PodNode"
1997
2030
  }
2031
+ }
2032
+ },
2033
+ "required": [
2034
+ "name",
2035
+ "type"
2036
+ ]
2037
+ },
2038
+ "FormattingCodeD": {
2039
+ "type": "object",
2040
+ "properties": {
2041
+ "type": {
2042
+ "type": "string",
2043
+ "enum": [
2044
+ "fcode"
2045
+ ]
1998
2046
  },
1999
- "margin": {
2000
- "type": "string"
2047
+ "name": {
2048
+ "type": "string",
2049
+ "enum": [
2050
+ "D"
2051
+ ]
2001
2052
  },
2002
- "config": {
2053
+ "synonyms": {
2003
2054
  "type": "array",
2004
2055
  "items": {
2005
- "anyOf": [
2006
- {
2007
- "$ref": "#/definitions/BrokenConfigItem"
2008
- },
2009
- {
2010
- "$ref": "#/definitions/ConfigItem"
2011
- }
2012
- ]
2056
+ "type": "string"
2013
2057
  }
2014
2058
  },
2015
- "id": {
2059
+ "content": {
2016
2060
  "type": "string"
2017
2061
  }
2018
2062
  },
2019
2063
  "required": [
2020
2064
  "content",
2021
- "location",
2022
- "margin",
2023
2065
  "name",
2066
+ "synonyms",
2024
2067
  "type"
2025
2068
  ]
2026
2069
  },
2027
- "BlockToc": {
2070
+ "FormattingCodeE": {
2028
2071
  "type": "object",
2029
2072
  "properties": {
2030
- "name": {
2073
+ "type": {
2031
2074
  "type": "string",
2032
2075
  "enum": [
2033
- "toc"
2076
+ "fcode"
2034
2077
  ]
2035
2078
  },
2036
- "type": {
2079
+ "name": {
2037
2080
  "type": "string",
2038
2081
  "enum": [
2039
- "block"
2082
+ "E"
2040
2083
  ]
2041
2084
  },
2042
- "location": {
2043
- "$ref": "#/definitions/Location"
2044
- },
2045
2085
  "content": {
2046
- "type": "array",
2047
- "items": {
2048
- "$ref": "#/definitions/PodNode"
2049
- }
2050
- },
2051
- "margin": {
2052
- "type": "string"
2053
- },
2054
- "config": {
2055
2086
  "type": "array",
2056
2087
  "items": {
2057
2088
  "anyOf": [
2058
2089
  {
2059
- "$ref": "#/definitions/BrokenConfigItem"
2090
+ "type": "object",
2091
+ "properties": {
2092
+ "type": {
2093
+ "type": "string",
2094
+ "enum": [
2095
+ "number"
2096
+ ]
2097
+ },
2098
+ "value": {
2099
+ "type": "number"
2100
+ }
2101
+ },
2102
+ "required": [
2103
+ "type",
2104
+ "value"
2105
+ ]
2060
2106
  },
2061
2107
  {
2062
- "$ref": "#/definitions/ConfigItem"
2108
+ "type": "object",
2109
+ "properties": {
2110
+ "type": {
2111
+ "type": "string",
2112
+ "enum": [
2113
+ "unicode_name"
2114
+ ]
2115
+ },
2116
+ "value": {
2117
+ "type": "string"
2118
+ }
2119
+ },
2120
+ "required": [
2121
+ "type",
2122
+ "value"
2123
+ ]
2124
+ },
2125
+ {
2126
+ "type": "object",
2127
+ "properties": {
2128
+ "type": {
2129
+ "type": "string",
2130
+ "enum": [
2131
+ "html_named"
2132
+ ]
2133
+ },
2134
+ "value": {
2135
+ "type": "string"
2136
+ }
2137
+ },
2138
+ "required": [
2139
+ "type",
2140
+ "value"
2141
+ ]
2063
2142
  }
2064
2143
  ]
2065
- }
2066
- },
2067
- "id": {
2068
- "type": "string"
2144
+ }
2069
2145
  }
2070
2146
  },
2071
2147
  "required": [
2072
2148
  "content",
2073
- "location",
2074
- "margin",
2075
2149
  "name",
2076
2150
  "type"
2077
2151
  ]
2078
2152
  },
2079
- "BlockMarkdown": {
2153
+ "FormattingCodeF": {
2080
2154
  "type": "object",
2081
2155
  "properties": {
2082
- "name": {
2156
+ "type": {
2083
2157
  "type": "string",
2084
2158
  "enum": [
2085
- "markdown"
2159
+ "fcode"
2086
2160
  ]
2087
2161
  },
2088
- "type": {
2162
+ "name": {
2089
2163
  "type": "string",
2090
2164
  "enum": [
2091
- "block"
2165
+ "F"
2092
2166
  ]
2093
2167
  },
2094
- "location": {
2095
- "$ref": "#/definitions/Location"
2096
- },
2097
2168
  "content": {
2098
2169
  "type": "array",
2099
2170
  "items": {
2100
- "$ref": "#/definitions/PodNode"
2101
- }
2102
- },
2103
- "margin": {
2104
- "type": "string"
2105
- },
2106
- "config": {
2107
- "type": "array",
2108
- "items": {
2109
- "anyOf": [
2110
- {
2111
- "$ref": "#/definitions/BrokenConfigItem"
2171
+ "type": "object",
2172
+ "properties": {
2173
+ "type": {
2174
+ "type": "string",
2175
+ "enum": [
2176
+ "text"
2177
+ ]
2112
2178
  },
2113
- {
2114
- "$ref": "#/definitions/ConfigItem"
2179
+ "value": {
2180
+ "type": "string"
2115
2181
  }
2182
+ },
2183
+ "required": [
2184
+ "type",
2185
+ "value"
2116
2186
  ]
2117
2187
  }
2118
- },
2119
- "id": {
2120
- "type": "string"
2121
2188
  }
2122
2189
  },
2123
2190
  "required": [
2124
2191
  "content",
2125
- "location",
2126
- "margin",
2127
2192
  "name",
2128
2193
  "type"
2129
2194
  ]
2130
2195
  },
2131
- "BlockNested": {
2196
+ "FormattingCodeI": {
2132
2197
  "type": "object",
2133
2198
  "properties": {
2134
- "name": {
2199
+ "type": {
2135
2200
  "type": "string",
2136
2201
  "enum": [
2137
- "nested"
2202
+ "fcode"
2138
2203
  ]
2139
2204
  },
2140
- "type": {
2205
+ "name": {
2141
2206
  "type": "string",
2142
2207
  "enum": [
2143
- "block"
2208
+ "I"
2144
2209
  ]
2145
2210
  },
2146
- "location": {
2147
- "$ref": "#/definitions/Location"
2148
- },
2149
- "content": {
2150
- "type": "array",
2151
- "items": {
2152
- "$ref": "#/definitions/PodNode"
2153
- }
2154
- },
2155
- "margin": {
2211
+ "meta": {
2156
2212
  "type": "string"
2157
2213
  },
2158
- "config": {
2159
- "type": "array",
2160
- "items": {
2161
- "anyOf": [
2162
- {
2163
- "$ref": "#/definitions/BrokenConfigItem"
2164
- },
2165
- {
2166
- "$ref": "#/definitions/ConfigItem"
2167
- }
2168
- ]
2169
- }
2170
- },
2171
- "id": {
2172
- "type": "string"
2214
+ "content": {
2215
+ "anyOf": [
2216
+ {
2217
+ "$ref": "#/definitions/Text"
2218
+ },
2219
+ {
2220
+ "type": "string"
2221
+ }
2222
+ ]
2173
2223
  }
2174
2224
  },
2175
2225
  "required": [
2176
2226
  "content",
2177
- "location",
2178
- "margin",
2227
+ "meta",
2179
2228
  "name",
2180
2229
  "type"
2181
2230
  ]
2182
2231
  },
2183
- "BlockHead": {
2232
+ "FormattingCodeL": {
2184
2233
  "type": "object",
2185
2234
  "properties": {
2235
+ "type": {
2236
+ "type": "string",
2237
+ "enum": [
2238
+ "fcode"
2239
+ ]
2240
+ },
2186
2241
  "name": {
2187
2242
  "type": "string",
2188
2243
  "enum": [
2189
- "head"
2244
+ "L"
2190
2245
  ]
2191
2246
  },
2192
- "level": {
2247
+ "meta": {
2193
2248
  "type": [
2194
- "string",
2195
- "number"
2249
+ "null",
2250
+ "string"
2196
2251
  ]
2197
2252
  },
2253
+ "content": {
2254
+ "anyOf": [
2255
+ {
2256
+ "$ref": "#/definitions/Text"
2257
+ },
2258
+ {
2259
+ "type": "array",
2260
+ "items": [
2261
+ {
2262
+ "$ref": "#/definitions/Text"
2263
+ }
2264
+ ],
2265
+ "minItems": 1,
2266
+ "maxItems": 1
2267
+ },
2268
+ {
2269
+ "type": "string"
2270
+ }
2271
+ ]
2272
+ }
2273
+ },
2274
+ "required": [
2275
+ "content",
2276
+ "meta",
2277
+ "name",
2278
+ "type"
2279
+ ]
2280
+ },
2281
+ "FormattingCodeN": {
2282
+ "type": "object",
2283
+ "properties": {
2198
2284
  "type": {
2199
2285
  "type": "string",
2200
2286
  "enum": [
2201
- "block"
2287
+ "fcode"
2202
2288
  ]
2203
2289
  },
2204
- "location": {
2205
- "$ref": "#/definitions/Location"
2290
+ "name": {
2291
+ "type": "string",
2292
+ "enum": [
2293
+ "N"
2294
+ ]
2206
2295
  },
2207
2296
  "content": {
2208
- "type": "array",
2209
- "items": {
2210
- "$ref": "#/definitions/PodNode"
2211
- }
2212
- },
2213
- "margin": {
2214
- "type": "string"
2215
- },
2216
- "config": {
2217
2297
  "type": "array",
2218
2298
  "items": {
2219
2299
  "anyOf": [
2220
2300
  {
2221
- "$ref": "#/definitions/BrokenConfigItem"
2301
+ "$ref": "#/definitions/FormattingCodeA"
2222
2302
  },
2223
2303
  {
2224
- "$ref": "#/definitions/ConfigItem"
2304
+ "$ref": "#/definitions/FormattingCodeC"
2305
+ },
2306
+ {
2307
+ "$ref": "#/definitions/FormattingCodeB"
2308
+ },
2309
+ {
2310
+ "$ref": "#/definitions/FormattingCodeD"
2311
+ },
2312
+ {
2313
+ "$ref": "#/definitions/FormattingCodeE"
2314
+ },
2315
+ {
2316
+ "$ref": "#/definitions/FormattingCodeF"
2317
+ },
2318
+ {
2319
+ "$ref": "#/definitions/FormattingCodeI"
2320
+ },
2321
+ {
2322
+ "$ref": "#/definitions/FormattingCodeL"
2323
+ },
2324
+ {
2325
+ "$ref": "#/definitions/FormattingCodeN"
2326
+ },
2327
+ {
2328
+ "$ref": "#/definitions/FormattingCodeX"
2329
+ },
2330
+ {
2331
+ "$ref": "#/definitions/FormattingCodeZ"
2332
+ },
2333
+ {
2334
+ "$ref": "#/definitions/FormattingCodeV"
2335
+ },
2336
+ {
2337
+ "$ref": "#/definitions/FormattingCodeS"
2338
+ },
2339
+ {
2340
+ "$ref": "#/definitions/FormattingCodeAny"
2341
+ },
2342
+ {
2343
+ "type": "string"
2225
2344
  }
2226
2345
  ]
2227
2346
  }
2228
- },
2229
- "id": {
2230
- "type": "string"
2231
2347
  }
2232
2348
  },
2233
2349
  "required": [
2234
- "content",
2235
- "level",
2236
- "location",
2237
- "margin",
2238
2350
  "name",
2239
2351
  "type"
2240
2352
  ]
2241
2353
  },
2242
- "BlockTable": {
2354
+ "FormattingCodeX": {
2243
2355
  "type": "object",
2244
2356
  "properties": {
2357
+ "type": {
2358
+ "type": "string",
2359
+ "enum": [
2360
+ "fcode"
2361
+ ]
2362
+ },
2245
2363
  "name": {
2246
2364
  "type": "string",
2247
2365
  "enum": [
2248
- "table"
2366
+ "X"
2367
+ ]
2368
+ },
2369
+ "entry": {
2370
+ "anyOf": [
2371
+ {
2372
+ "type": "array",
2373
+ "items": {
2374
+ "type": "string"
2375
+ }
2376
+ },
2377
+ {
2378
+ "type": "null"
2379
+ }
2249
2380
  ]
2250
2381
  },
2251
2382
  "content": {
@@ -2253,242 +2384,284 @@
2253
2384
  "items": {
2254
2385
  "anyOf": [
2255
2386
  {
2256
- "$ref": "#/definitions/BlankLine"
2387
+ "$ref": "#/definitions/FormattingCodeA"
2388
+ },
2389
+ {
2390
+ "$ref": "#/definitions/FormattingCodeC"
2391
+ },
2392
+ {
2393
+ "$ref": "#/definitions/FormattingCodeB"
2394
+ },
2395
+ {
2396
+ "$ref": "#/definitions/FormattingCodeD"
2397
+ },
2398
+ {
2399
+ "$ref": "#/definitions/FormattingCodeE"
2400
+ },
2401
+ {
2402
+ "$ref": "#/definitions/FormattingCodeF"
2403
+ },
2404
+ {
2405
+ "$ref": "#/definitions/FormattingCodeI"
2406
+ },
2407
+ {
2408
+ "$ref": "#/definitions/FormattingCodeL"
2409
+ },
2410
+ {
2411
+ "$ref": "#/definitions/FormattingCodeN"
2412
+ },
2413
+ {
2414
+ "$ref": "#/definitions/FormattingCodeX"
2257
2415
  },
2258
2416
  {
2259
- "$ref": "#/definitions/TableRow"
2417
+ "$ref": "#/definitions/FormattingCodeZ"
2260
2418
  },
2261
2419
  {
2262
- "$ref": "#/definitions/TableHead"
2420
+ "$ref": "#/definitions/FormattingCodeV"
2263
2421
  },
2264
2422
  {
2265
- "$ref": "#/definitions/TableSeparator"
2266
- }
2267
- ]
2268
- }
2269
- },
2270
- "text": {
2271
- "type": "string"
2272
- },
2273
- "type": {
2274
- "type": "string",
2275
- "enum": [
2276
- "block"
2277
- ]
2278
- },
2279
- "location": {
2280
- "$ref": "#/definitions/Location"
2281
- },
2282
- "margin": {
2283
- "type": "string"
2284
- },
2285
- "config": {
2286
- "type": "array",
2287
- "items": {
2288
- "anyOf": [
2423
+ "$ref": "#/definitions/FormattingCodeS"
2424
+ },
2289
2425
  {
2290
- "$ref": "#/definitions/BrokenConfigItem"
2426
+ "$ref": "#/definitions/FormattingCodeAny"
2291
2427
  },
2292
2428
  {
2293
- "$ref": "#/definitions/ConfigItem"
2429
+ "type": "string"
2294
2430
  }
2295
2431
  ]
2296
2432
  }
2297
- },
2298
- "id": {
2299
- "type": "string"
2300
2433
  }
2301
2434
  },
2302
2435
  "required": [
2303
- "content",
2304
- "location",
2305
- "margin",
2436
+ "entry",
2306
2437
  "name",
2307
2438
  "type"
2308
2439
  ]
2309
2440
  },
2310
- "TableRow": {
2441
+ "FormattingCodeZ": {
2311
2442
  "type": "object",
2312
2443
  "properties": {
2313
- "name": {
2444
+ "type": {
2314
2445
  "type": "string",
2315
2446
  "enum": [
2316
- "table_row"
2447
+ "fcode"
2317
2448
  ]
2318
2449
  },
2319
- "type": {
2450
+ "name": {
2320
2451
  "type": "string",
2321
2452
  "enum": [
2322
- "block"
2453
+ "Z"
2323
2454
  ]
2324
2455
  },
2325
2456
  "content": {
2326
- "type": "array",
2327
- "items": {
2328
- "$ref": "#/definitions/TableCell"
2329
- }
2457
+ "type": "string"
2330
2458
  }
2331
2459
  },
2332
2460
  "required": [
2333
- "content",
2334
2461
  "name",
2335
2462
  "type"
2336
2463
  ]
2337
2464
  },
2338
- "TableCell": {
2465
+ "FormattingCodeV": {
2339
2466
  "type": "object",
2340
2467
  "properties": {
2341
- "name": {
2468
+ "type": {
2342
2469
  "type": "string",
2343
2470
  "enum": [
2344
- "table_cell"
2471
+ "fcode"
2345
2472
  ]
2346
2473
  },
2347
- "type": {
2474
+ "name": {
2348
2475
  "type": "string",
2349
2476
  "enum": [
2350
- "block"
2477
+ "V"
2351
2478
  ]
2352
2479
  },
2353
2480
  "content": {
2354
- "type": "array",
2355
- "items": {
2356
- "type": "string"
2357
- }
2481
+ "type": "string"
2358
2482
  }
2359
2483
  },
2360
2484
  "required": [
2361
- "content",
2362
2485
  "name",
2363
2486
  "type"
2364
2487
  ]
2365
2488
  },
2366
- "TableHead": {
2489
+ "FormattingCodeS": {
2367
2490
  "type": "object",
2368
2491
  "properties": {
2492
+ "type": {
2493
+ "type": "string",
2494
+ "enum": [
2495
+ "fcode"
2496
+ ]
2497
+ },
2369
2498
  "name": {
2370
2499
  "type": "string",
2371
2500
  "enum": [
2372
- "table_head"
2501
+ "S"
2373
2502
  ]
2374
2503
  },
2504
+ "content": {
2505
+ "anyOf": [
2506
+ {
2507
+ "$ref": "#/definitions/Text"
2508
+ },
2509
+ {
2510
+ "type": "string"
2511
+ }
2512
+ ]
2513
+ }
2514
+ },
2515
+ "required": [
2516
+ "name",
2517
+ "type"
2518
+ ]
2519
+ },
2520
+ "FormattingCodeAny": {
2521
+ "type": "object",
2522
+ "properties": {
2375
2523
  "type": {
2376
2524
  "type": "string",
2377
2525
  "enum": [
2378
- "block"
2526
+ "fcode"
2379
2527
  ]
2380
2528
  },
2529
+ "name": {
2530
+ "type": "string"
2531
+ },
2381
2532
  "content": {
2382
2533
  "type": "array",
2383
2534
  "items": {
2384
- "$ref": "#/definitions/TableCell"
2535
+ "anyOf": [
2536
+ {
2537
+ "$ref": "#/definitions/FormattingCodeA"
2538
+ },
2539
+ {
2540
+ "$ref": "#/definitions/FormattingCodeC"
2541
+ },
2542
+ {
2543
+ "$ref": "#/definitions/FormattingCodeB"
2544
+ },
2545
+ {
2546
+ "$ref": "#/definitions/FormattingCodeD"
2547
+ },
2548
+ {
2549
+ "$ref": "#/definitions/FormattingCodeE"
2550
+ },
2551
+ {
2552
+ "$ref": "#/definitions/FormattingCodeF"
2553
+ },
2554
+ {
2555
+ "$ref": "#/definitions/FormattingCodeI"
2556
+ },
2557
+ {
2558
+ "$ref": "#/definitions/FormattingCodeL"
2559
+ },
2560
+ {
2561
+ "$ref": "#/definitions/FormattingCodeN"
2562
+ },
2563
+ {
2564
+ "$ref": "#/definitions/FormattingCodeX"
2565
+ },
2566
+ {
2567
+ "$ref": "#/definitions/FormattingCodeZ"
2568
+ },
2569
+ {
2570
+ "$ref": "#/definitions/FormattingCodeV"
2571
+ },
2572
+ {
2573
+ "$ref": "#/definitions/FormattingCodeS"
2574
+ },
2575
+ {
2576
+ "$ref": "#/definitions/FormattingCodeAny"
2577
+ },
2578
+ {
2579
+ "type": "string"
2580
+ }
2581
+ ]
2385
2582
  }
2386
2583
  }
2387
2584
  },
2388
2585
  "required": [
2389
- "content",
2390
2586
  "name",
2391
2587
  "type"
2392
2588
  ]
2393
2589
  },
2394
- "TableSeparator": {
2590
+ "Toc": {
2395
2591
  "type": "object",
2396
2592
  "properties": {
2397
2593
  "type": {
2398
2594
  "type": "string",
2399
2595
  "enum": [
2400
- "separator"
2596
+ "toc"
2401
2597
  ]
2402
2598
  },
2403
- "text": {
2599
+ "title": {
2404
2600
  "type": "string"
2601
+ },
2602
+ "content": {
2603
+ "$ref": "#/definitions/TocList"
2405
2604
  }
2406
2605
  },
2407
2606
  "required": [
2408
- "text",
2607
+ "content",
2409
2608
  "type"
2410
2609
  ]
2411
2610
  },
2412
- "BlockNamed": {
2611
+ "TocList": {
2413
2612
  "type": "object",
2414
2613
  "properties": {
2415
- "name": {
2416
- "type": "string"
2417
- },
2418
- "content": {
2419
- "anyOf": [
2420
- {
2421
- "$ref": "#/definitions/RootBlock"
2422
- },
2423
- {
2424
- "type": "array",
2425
- "items": [
2426
- {
2427
- "anyOf": [
2428
- {
2429
- "$ref": "#/definitions/Verbatim"
2430
- },
2431
- {
2432
- "$ref": "#/definitions/Para"
2433
- },
2434
- {
2435
- "$ref": "#/definitions/Code"
2436
- }
2437
- ]
2438
- }
2439
- ],
2440
- "minItems": 0,
2441
- "maxItems": 1
2442
- },
2443
- {
2444
- "type": "array",
2445
- "items": {
2446
- "anyOf": [
2447
- {
2448
- "$ref": "#/definitions/Image"
2449
- },
2450
- {
2451
- "$ref": "#/definitions/BlockCaption"
2452
- }
2453
- ]
2454
- }
2455
- }
2456
- ]
2457
- },
2458
2614
  "type": {
2459
2615
  "type": "string",
2460
2616
  "enum": [
2461
- "block"
2617
+ "toc-list"
2462
2618
  ]
2463
2619
  },
2464
- "location": {
2465
- "$ref": "#/definitions/Location"
2466
- },
2467
- "margin": {
2468
- "type": "string"
2620
+ "level": {
2621
+ "type": "number"
2469
2622
  },
2470
- "config": {
2623
+ "content": {
2471
2624
  "type": "array",
2472
2625
  "items": {
2473
2626
  "anyOf": [
2474
2627
  {
2475
- "$ref": "#/definitions/BrokenConfigItem"
2628
+ "$ref": "#/definitions/TocList"
2476
2629
  },
2477
2630
  {
2478
- "$ref": "#/definitions/ConfigItem"
2631
+ "$ref": "#/definitions/TocItem"
2479
2632
  }
2480
2633
  ]
2481
2634
  }
2635
+ }
2636
+ },
2637
+ "required": [
2638
+ "content",
2639
+ "level",
2640
+ "type"
2641
+ ]
2642
+ },
2643
+ "TocItem": {
2644
+ "type": "object",
2645
+ "properties": {
2646
+ "type": {
2647
+ "type": "string",
2648
+ "enum": [
2649
+ "toc-item"
2650
+ ]
2482
2651
  },
2483
- "id": {
2484
- "type": "string"
2652
+ "node": {
2653
+ "$ref": "#/definitions/PodNode"
2654
+ },
2655
+ "content": {
2656
+ "type": "array",
2657
+ "items": {
2658
+ "$ref": "#/definitions/PodNode"
2659
+ }
2485
2660
  }
2486
2661
  },
2487
2662
  "required": [
2488
2663
  "content",
2489
- "location",
2490
- "margin",
2491
- "name",
2664
+ "node",
2492
2665
  "type"
2493
2666
  ]
2494
2667
  }