@podlite/schema 0.0.18 → 0.0.19

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/AstTree",
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,654 +512,449 @@
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": {
869
- "type": "string",
870
- "enum": [
871
- "fcode"
872
- ]
873
- },
874
746
  "name": {
875
747
  "type": "string",
876
748
  "enum": [
877
- "Z"
749
+ "para"
878
750
  ]
879
751
  },
880
- "content": {
881
- "type": "string"
882
- }
883
- },
884
- "required": [
885
- "name",
886
- "type"
887
- ]
888
- },
889
- "FormattingCodeV": {
890
- "type": "object",
891
- "properties": {
892
752
  "type": {
893
753
  "type": "string",
894
754
  "enum": [
895
- "fcode"
755
+ "block"
896
756
  ]
897
757
  },
898
- "name": {
899
- "type": "string",
900
- "enum": [
901
- "V"
902
- ]
758
+ "location": {
759
+ "$ref": "#/definitions/Location"
903
760
  },
904
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": {
905
784
  "type": "string"
906
785
  }
907
786
  },
908
787
  "required": [
788
+ "content",
789
+ "location",
790
+ "margin",
909
791
  "name",
910
792
  "type"
911
793
  ]
912
794
  },
913
- "FormattingCodeS": {
795
+ "BlockHead": {
914
796
  "type": "object",
915
797
  "properties": {
916
- "type": {
917
- "type": "string",
918
- "enum": [
919
- "fcode"
920
- ]
921
- },
922
798
  "name": {
923
799
  "type": "string",
924
800
  "enum": [
925
- "S"
801
+ "head"
926
802
  ]
927
803
  },
928
- "content": {
929
- "anyOf": [
930
- {
931
- "$ref": "#/definitions/Text"
932
- },
933
- {
934
- "type": "string"
935
- }
936
- ]
937
- }
938
- },
939
- "required": [
940
- "name",
941
- "type"
942
- ]
943
- },
944
- "Text": {
945
- "type": "object",
946
- "properties": {
947
- "type": {
948
- "type": "string",
949
- "enum": [
950
- "text"
804
+ "level": {
805
+ "type": [
806
+ "string",
807
+ "number"
951
808
  ]
952
809
  },
953
- "value": {
954
- "type": "string"
955
- }
956
- },
957
- "required": [
958
- "type",
959
- "value"
960
- ]
961
- },
962
- "FormattingCodeA": {
963
- "type": "object",
964
- "properties": {
965
810
  "type": {
966
811
  "type": "string",
967
812
  "enum": [
968
- "fcode"
813
+ "block"
969
814
  ]
970
815
  },
971
- "name": {
972
- "type": "string",
973
- "enum": [
974
- "A"
975
- ]
816
+ "location": {
817
+ "$ref": "#/definitions/Location"
976
818
  },
977
819
  "content": {
978
- "anyOf": [
979
- {
980
- "$ref": "#/definitions/Text"
981
- },
982
- {
983
- "type": "string"
984
- }
985
- ]
986
- }
987
- },
988
- "required": [
989
- "content",
990
- "name",
991
- "type"
992
- ]
993
- },
994
- "FormattingCodeD": {
995
- "type": "object",
996
- "properties": {
997
- "type": {
998
- "type": "string",
999
- "enum": [
1000
- "fcode"
1001
- ]
820
+ "type": "array",
821
+ "items": {
822
+ "$ref": "#/definitions/PodNode"
823
+ }
1002
824
  },
1003
- "name": {
1004
- "type": "string",
1005
- "enum": [
1006
- "D"
1007
- ]
825
+ "margin": {
826
+ "type": "string"
1008
827
  },
1009
- "synonyms": {
828
+ "config": {
1010
829
  "type": "array",
1011
830
  "items": {
1012
- "type": "string"
831
+ "anyOf": [
832
+ {
833
+ "$ref": "#/definitions/BrokenConfigItem"
834
+ },
835
+ {
836
+ "$ref": "#/definitions/ConfigItem"
837
+ }
838
+ ]
1013
839
  }
1014
840
  },
1015
- "content": {
841
+ "id": {
1016
842
  "type": "string"
1017
843
  }
1018
844
  },
1019
845
  "required": [
1020
846
  "content",
847
+ "level",
848
+ "location",
849
+ "margin",
1021
850
  "name",
1022
- "synonyms",
1023
851
  "type"
1024
852
  ]
1025
853
  },
1026
- "FormattingCodeL": {
854
+ "BlockComment": {
1027
855
  "type": "object",
1028
856
  "properties": {
1029
- "type": {
857
+ "name": {
1030
858
  "type": "string",
1031
859
  "enum": [
1032
- "fcode"
860
+ "comment"
1033
861
  ]
1034
862
  },
1035
- "name": {
863
+ "type": {
1036
864
  "type": "string",
1037
865
  "enum": [
1038
- "L"
866
+ "block"
1039
867
  ]
1040
868
  },
1041
- "meta": {
1042
- "type": [
1043
- "null",
1044
- "string"
1045
- ]
869
+ "location": {
870
+ "$ref": "#/definitions/Location"
1046
871
  },
1047
872
  "content": {
1048
- "anyOf": [
1049
- {
1050
- "$ref": "#/definitions/Text"
1051
- },
1052
- {
1053
- "type": "string"
1054
- }
1055
- ]
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"
1056
896
  }
1057
897
  },
1058
898
  "required": [
1059
899
  "content",
1060
- "meta",
900
+ "location",
901
+ "margin",
1061
902
  "name",
1062
903
  "type"
1063
904
  ]
1064
905
  },
1065
- "FormattingCodeI": {
906
+ "BlockDefn": {
1066
907
  "type": "object",
1067
908
  "properties": {
1068
- "type": {
909
+ "name": {
1069
910
  "type": "string",
1070
911
  "enum": [
1071
- "fcode"
912
+ "defn"
1072
913
  ]
1073
914
  },
1074
- "name": {
915
+ "type": {
1075
916
  "type": "string",
1076
917
  "enum": [
1077
- "I"
918
+ "block"
1078
919
  ]
1079
920
  },
1080
- "meta": {
1081
- "type": "string"
921
+ "location": {
922
+ "$ref": "#/definitions/Location"
1082
923
  },
1083
924
  "content": {
1084
- "anyOf": [
1085
- {
1086
- "$ref": "#/definitions/Text"
1087
- },
1088
- {
1089
- "type": "string"
1090
- }
1091
- ]
1092
- }
1093
- },
1094
- "required": [
1095
- "content",
1096
- "meta",
1097
- "name",
1098
- "type"
1099
- ]
1100
- },
1101
- "FormattingCodeAny": {
1102
- "type": "object",
1103
- "properties": {
1104
- "type": {
1105
- "type": "string",
1106
- "enum": [
1107
- "fcode"
1108
- ]
925
+ "type": "array",
926
+ "items": {
927
+ "$ref": "#/definitions/PodNode"
928
+ }
1109
929
  },
1110
- "name": {
930
+ "margin": {
1111
931
  "type": "string"
1112
932
  },
1113
- "content": {
933
+ "config": {
1114
934
  "type": "array",
1115
935
  "items": {
1116
936
  "anyOf": [
1117
937
  {
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"
938
+ "$ref": "#/definitions/BrokenConfigItem"
1155
939
  },
1156
940
  {
1157
- "type": "string"
941
+ "$ref": "#/definitions/ConfigItem"
1158
942
  }
1159
943
  ]
1160
944
  }
1161
- }
1162
- },
1163
- "required": [
1164
- "name",
1165
- "type"
1166
- ]
1167
- },
1168
- "Ambient": {
1169
- "type": "object",
1170
- "properties": {
1171
- "type": {
1172
- "type": "string",
1173
- "enum": [
1174
- "ambient"
1175
- ]
1176
945
  },
1177
- "text": {
946
+ "id": {
1178
947
  "type": "string"
1179
- },
1180
- "location": {
1181
- "$ref": "#/definitions/Location"
1182
948
  }
1183
949
  },
1184
950
  "required": [
951
+ "content",
1185
952
  "location",
1186
- "text",
953
+ "margin",
954
+ "name",
1187
955
  "type"
1188
956
  ]
1189
957
  },
1190
- "Verbatim": {
1191
- "type": "object",
1192
- "properties": {
1193
- "type": {
1194
- "type": "string",
1195
- "enum": [
1196
- "verbatim"
1197
- ]
1198
- },
1199
- "value": {
1200
- "type": "string"
1201
- }
1202
- },
1203
- "required": [
1204
- "type",
1205
- "value"
1206
- ]
1207
- },
1208
958
  "Para": {
1209
959
  "type": "object",
1210
960
  "properties": {
@@ -1228,136 +978,142 @@
1228
978
  "items": {
1229
979
  "anyOf": [
1230
980
  {
1231
- "$ref": "#/definitions/Image"
981
+ "$ref": "#/definitions/Ambient"
982
+ },
983
+ {
984
+ "$ref": "#/definitions/BlockPod"
1232
985
  },
1233
986
  {
1234
- "$ref": "#/definitions/Toc"
987
+ "$ref": "#/definitions/BlockData"
1235
988
  },
1236
989
  {
1237
- "$ref": "#/definitions/BlockImage"
990
+ "$ref": "#/definitions/BlockFormula"
1238
991
  },
1239
992
  {
1240
- "$ref": "#/definitions/BlockPicture"
993
+ "$ref": "#/definitions/BlockCode"
1241
994
  },
1242
995
  {
1243
- "$ref": "#/definitions/BlockCaption"
996
+ "$ref": "#/definitions/BlankLine"
1244
997
  },
1245
998
  {
1246
- "$ref": "#/definitions/RootBlock"
999
+ "$ref": "#/definitions/BlockNested"
1247
1000
  },
1248
1001
  {
1249
- "$ref": "#/definitions/FormattingCodeB"
1002
+ "$ref": "#/definitions/BlockMarkdown"
1250
1003
  },
1251
1004
  {
1252
- "$ref": "#/definitions/FormattingCodeC"
1005
+ "$ref": "#/definitions/BlockOutput"
1253
1006
  },
1254
1007
  {
1255
- "$ref": "#/definitions/FormattingCodeE"
1008
+ "$ref": "#/definitions/BlockInput"
1256
1009
  },
1257
1010
  {
1258
- "$ref": "#/definitions/FormattingCodeN"
1011
+ "$ref": "#/definitions/BlockPara"
1259
1012
  },
1260
1013
  {
1261
- "$ref": "#/definitions/FormattingCodeX"
1014
+ "$ref": "#/definitions/BlockHead"
1262
1015
  },
1263
1016
  {
1264
- "$ref": "#/definitions/FormattingCodeZ"
1017
+ "$ref": "#/definitions/BlockComment"
1265
1018
  },
1266
1019
  {
1267
- "$ref": "#/definitions/FormattingCodeV"
1020
+ "$ref": "#/definitions/BlockDefn"
1268
1021
  },
1269
1022
  {
1270
- "$ref": "#/definitions/FormattingCodeS"
1023
+ "$ref": "#/definitions/Para"
1271
1024
  },
1272
1025
  {
1273
- "$ref": "#/definitions/FormattingCodeA"
1026
+ "$ref": "#/definitions/Text"
1274
1027
  },
1275
1028
  {
1276
- "$ref": "#/definitions/FormattingCodeD"
1029
+ "$ref": "#/definitions/Code"
1277
1030
  },
1278
1031
  {
1279
- "$ref": "#/definitions/FormattingCodeL"
1032
+ "$ref": "#/definitions/BlockNamed"
1280
1033
  },
1281
1034
  {
1282
- "$ref": "#/definitions/FormattingCodeI"
1035
+ "$ref": "#/definitions/Verbatim"
1283
1036
  },
1284
1037
  {
1285
- "$ref": "#/definitions/FormattingCodeAny"
1038
+ "$ref": "#/definitions/BlockTable"
1286
1039
  },
1287
1040
  {
1288
- "$ref": "#/definitions/Ambient"
1041
+ "$ref": "#/definitions/List"
1289
1042
  },
1290
1043
  {
1291
- "$ref": "#/definitions/Verbatim"
1044
+ "$ref": "#/definitions/BlockConfig"
1292
1045
  },
1293
1046
  {
1294
- "$ref": "#/definitions/Text"
1047
+ "$ref": "#/definitions/BlockItem"
1295
1048
  },
1296
1049
  {
1297
- "$ref": "#/definitions/Para"
1050
+ "$ref": "#/definitions/Alias"
1298
1051
  },
1299
1052
  {
1300
- "$ref": "#/definitions/Code"
1053
+ "$ref": "#/definitions/BlockToc"
1301
1054
  },
1302
1055
  {
1303
- "$ref": "#/definitions/BlankLine"
1056
+ "$ref": "#/definitions/BlockPicture"
1304
1057
  },
1305
1058
  {
1306
- "$ref": "#/definitions/List"
1059
+ "$ref": "#/definitions/BlockImage"
1307
1060
  },
1308
1061
  {
1309
- "$ref": "#/definitions/BlockConfig"
1062
+ "$ref": "#/definitions/Image"
1310
1063
  },
1311
1064
  {
1312
- "$ref": "#/definitions/Alias"
1065
+ "$ref": "#/definitions/RootBlock"
1313
1066
  },
1314
1067
  {
1315
1068
  "$ref": "#/definitions/Separator"
1316
1069
  },
1317
1070
  {
1318
- "$ref": "#/definitions/BlockPod"
1071
+ "$ref": "#/definitions/BlockCaption"
1319
1072
  },
1320
1073
  {
1321
- "$ref": "#/definitions/BlockData"
1074
+ "$ref": "#/definitions/FormattingCodeA"
1322
1075
  },
1323
1076
  {
1324
- "$ref": "#/definitions/BlockComment"
1077
+ "$ref": "#/definitions/FormattingCodeC"
1325
1078
  },
1326
1079
  {
1327
- "$ref": "#/definitions/BlockDefn"
1080
+ "$ref": "#/definitions/FormattingCodeB"
1328
1081
  },
1329
1082
  {
1330
- "$ref": "#/definitions/BlockItem"
1083
+ "$ref": "#/definitions/FormattingCodeD"
1331
1084
  },
1332
1085
  {
1333
- "$ref": "#/definitions/BlockOutput"
1086
+ "$ref": "#/definitions/FormattingCodeE"
1334
1087
  },
1335
1088
  {
1336
- "$ref": "#/definitions/BlockInput"
1089
+ "$ref": "#/definitions/FormattingCodeF"
1337
1090
  },
1338
1091
  {
1339
- "$ref": "#/definitions/BlockPara"
1092
+ "$ref": "#/definitions/FormattingCodeI"
1340
1093
  },
1341
1094
  {
1342
- "$ref": "#/definitions/BlockCode"
1095
+ "$ref": "#/definitions/FormattingCodeL"
1343
1096
  },
1344
1097
  {
1345
- "$ref": "#/definitions/BlockToc"
1098
+ "$ref": "#/definitions/FormattingCodeN"
1346
1099
  },
1347
1100
  {
1348
- "$ref": "#/definitions/BlockMarkdown"
1101
+ "$ref": "#/definitions/FormattingCodeX"
1349
1102
  },
1350
1103
  {
1351
- "$ref": "#/definitions/BlockNested"
1104
+ "$ref": "#/definitions/FormattingCodeZ"
1352
1105
  },
1353
1106
  {
1354
- "$ref": "#/definitions/BlockHead"
1107
+ "$ref": "#/definitions/FormattingCodeV"
1355
1108
  },
1356
1109
  {
1357
- "$ref": "#/definitions/BlockTable"
1110
+ "$ref": "#/definitions/FormattingCodeS"
1358
1111
  },
1359
1112
  {
1360
- "$ref": "#/definitions/BlockNamed"
1113
+ "$ref": "#/definitions/FormattingCodeAny"
1114
+ },
1115
+ {
1116
+ "$ref": "#/definitions/Toc"
1361
1117
  },
1362
1118
  {
1363
1119
  "type": "string"
@@ -1374,6 +1130,24 @@
1374
1130
  "type"
1375
1131
  ]
1376
1132
  },
1133
+ "Text": {
1134
+ "type": "object",
1135
+ "properties": {
1136
+ "type": {
1137
+ "type": "string",
1138
+ "enum": [
1139
+ "text"
1140
+ ]
1141
+ },
1142
+ "value": {
1143
+ "type": "string"
1144
+ }
1145
+ },
1146
+ "required": [
1147
+ "type",
1148
+ "value"
1149
+ ]
1150
+ },
1377
1151
  "Code": {
1378
1152
  "type": "object",
1379
1153
  "properties": {
@@ -1414,85 +1188,222 @@
1414
1188
  "type"
1415
1189
  ]
1416
1190
  },
1417
- "BlankLine": {
1191
+ "BlockNamed": {
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "name": {
1195
+ "type": "string"
1196
+ },
1197
+ "content": {
1198
+ "anyOf": [
1199
+ {
1200
+ "$ref": "#/definitions/RootBlock"
1201
+ },
1202
+ {
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
+ }
1234
+ }
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"
1264
+ }
1265
+ },
1266
+ "required": [
1267
+ "content",
1268
+ "location",
1269
+ "margin",
1270
+ "name",
1271
+ "type"
1272
+ ]
1273
+ },
1274
+ "RootBlock": {
1418
1275
  "type": "object",
1419
1276
  "properties": {
1277
+ "name": {
1278
+ "type": "string",
1279
+ "enum": [
1280
+ "root"
1281
+ ]
1282
+ },
1283
+ "content": {
1284
+ "$ref": "#/definitions/AstTree"
1285
+ },
1286
+ "margin": {
1287
+ "type": "string"
1288
+ },
1420
1289
  "type": {
1421
1290
  "type": "string",
1422
1291
  "enum": [
1423
- "blankline"
1292
+ "block"
1424
1293
  ]
1294
+ },
1295
+ "config": {
1296
+ "type": "array",
1297
+ "items": {
1298
+ "anyOf": [
1299
+ {
1300
+ "$ref": "#/definitions/BrokenConfigItem"
1301
+ },
1302
+ {
1303
+ "$ref": "#/definitions/ConfigItem"
1304
+ }
1305
+ ]
1306
+ }
1307
+ },
1308
+ "id": {
1309
+ "type": "string"
1425
1310
  }
1426
1311
  },
1427
1312
  "required": [
1313
+ "content",
1314
+ "margin",
1315
+ "name",
1428
1316
  "type"
1429
1317
  ]
1430
1318
  },
1431
- "List": {
1319
+ "AstTree": {
1320
+ "type": "array",
1321
+ "items": {
1322
+ "$ref": "#/definitions/PodNode"
1323
+ }
1324
+ },
1325
+ "Image": {
1432
1326
  "type": "object",
1433
1327
  "properties": {
1434
1328
  "type": {
1435
1329
  "type": "string",
1436
1330
  "enum": [
1437
- "list"
1331
+ "image"
1438
1332
  ]
1439
1333
  },
1440
- "level": {
1441
- "type": [
1442
- "string",
1443
- "number"
1334
+ "src": {
1335
+ "type": "string"
1336
+ },
1337
+ "alt": {
1338
+ "type": "string"
1339
+ }
1340
+ },
1341
+ "required": [
1342
+ "src",
1343
+ "type"
1344
+ ]
1345
+ },
1346
+ "BlockCaption": {
1347
+ "type": "object",
1348
+ "properties": {
1349
+ "name": {
1350
+ "type": "string",
1351
+ "enum": [
1352
+ "caption"
1444
1353
  ]
1445
1354
  },
1446
1355
  "content": {
1447
1356
  "type": "array",
1448
1357
  "items": {
1449
- "anyOf": [
1450
- {
1451
- "$ref": "#/definitions/BlankLine"
1452
- },
1453
- {
1454
- "$ref": "#/definitions/List"
1455
- },
1456
- {
1457
- "$ref": "#/definitions/BlockItem"
1458
- }
1459
- ]
1358
+ "$ref": "#/definitions/PodNode"
1460
1359
  }
1461
1360
  },
1462
- "list": {
1361
+ "type": {
1463
1362
  "type": "string",
1464
1363
  "enum": [
1465
- "itemized"
1364
+ "block"
1466
1365
  ]
1467
1366
  }
1468
1367
  },
1469
1368
  "required": [
1470
1369
  "content",
1471
- "level",
1472
- "list",
1370
+ "name",
1473
1371
  "type"
1474
1372
  ]
1475
1373
  },
1476
- "BlockItem": {
1374
+ "BlockTable": {
1477
1375
  "type": "object",
1478
1376
  "properties": {
1479
1377
  "name": {
1480
1378
  "type": "string",
1481
1379
  "enum": [
1482
- "item"
1380
+ "table"
1483
1381
  ]
1484
1382
  },
1485
1383
  "content": {
1486
1384
  "type": "array",
1487
1385
  "items": {
1488
- "$ref": "#/definitions/PodNode"
1386
+ "anyOf": [
1387
+ {
1388
+ "$ref": "#/definitions/BlankLine"
1389
+ },
1390
+ {
1391
+ "$ref": "#/definitions/TableRow"
1392
+ },
1393
+ {
1394
+ "$ref": "#/definitions/TableHead"
1395
+ },
1396
+ {
1397
+ "$ref": "#/definitions/TableSeparator"
1398
+ }
1399
+ ]
1489
1400
  }
1490
1401
  },
1491
- "level": {
1492
- "type": [
1493
- "string",
1494
- "number"
1495
- ]
1402
+ "text": {
1403
+ "type": "string"
1404
+ },
1405
+ "margin": {
1406
+ "type": "string"
1496
1407
  },
1497
1408
  "type": {
1498
1409
  "type": "string",
@@ -1503,9 +1414,6 @@
1503
1414
  "location": {
1504
1415
  "$ref": "#/definitions/Location"
1505
1416
  },
1506
- "margin": {
1507
- "type": "string"
1508
- },
1509
1417
  "config": {
1510
1418
  "type": "array",
1511
1419
  "items": {
@@ -1525,72 +1433,97 @@
1525
1433
  },
1526
1434
  "required": [
1527
1435
  "content",
1528
- "level",
1529
1436
  "location",
1530
1437
  "margin",
1531
1438
  "name",
1532
1439
  "type"
1533
1440
  ]
1534
1441
  },
1535
- "BlockConfig": {
1442
+ "TableRow": {
1536
1443
  "type": "object",
1537
1444
  "properties": {
1538
1445
  "name": {
1539
- "type": "string"
1446
+ "type": "string",
1447
+ "enum": [
1448
+ "table_row"
1449
+ ]
1540
1450
  },
1541
1451
  "type": {
1542
1452
  "type": "string",
1543
1453
  "enum": [
1544
- "config"
1454
+ "block"
1545
1455
  ]
1546
1456
  },
1547
- "config": {
1457
+ "content": {
1548
1458
  "type": "array",
1549
1459
  "items": {
1550
- "$ref": "#/definitions/ConfigItem"
1460
+ "$ref": "#/definitions/TableCell"
1551
1461
  }
1552
- },
1553
- "margin": {
1554
- "type": "string"
1555
1462
  }
1556
1463
  },
1557
1464
  "required": [
1558
- "config",
1559
- "margin",
1465
+ "content",
1560
1466
  "name",
1561
1467
  "type"
1562
1468
  ]
1563
1469
  },
1564
- "Alias": {
1470
+ "TableCell": {
1565
1471
  "type": "object",
1566
1472
  "properties": {
1567
1473
  "name": {
1568
- "type": "string"
1474
+ "type": "string",
1475
+ "enum": [
1476
+ "table_cell"
1477
+ ]
1569
1478
  },
1570
1479
  "type": {
1571
1480
  "type": "string",
1572
1481
  "enum": [
1573
- "alias"
1482
+ "block"
1574
1483
  ]
1575
1484
  },
1576
- "replacement": {
1485
+ "content": {
1577
1486
  "type": "array",
1578
1487
  "items": {
1579
1488
  "type": "string"
1580
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
+ ]
1581
1506
  },
1582
- "margin": {
1583
- "type": "string"
1507
+ "type": {
1508
+ "type": "string",
1509
+ "enum": [
1510
+ "block"
1511
+ ]
1512
+ },
1513
+ "content": {
1514
+ "type": "array",
1515
+ "items": {
1516
+ "$ref": "#/definitions/TableCell"
1517
+ }
1584
1518
  }
1585
1519
  },
1586
1520
  "required": [
1587
- "margin",
1521
+ "content",
1588
1522
  "name",
1589
- "replacement",
1590
1523
  "type"
1591
1524
  ]
1592
1525
  },
1593
- "Separator": {
1526
+ "TableSeparator": {
1594
1527
  "type": "object",
1595
1528
  "properties": {
1596
1529
  "type": {
@@ -1608,65 +1541,70 @@
1608
1541
  "type"
1609
1542
  ]
1610
1543
  },
1611
- "BlockPod": {
1544
+ "List": {
1612
1545
  "type": "object",
1613
1546
  "properties": {
1614
- "name": {
1615
- "type": "string",
1616
- "enum": [
1617
- "pod"
1618
- ]
1619
- },
1620
1547
  "type": {
1621
1548
  "type": "string",
1622
1549
  "enum": [
1623
- "block"
1550
+ "list"
1624
1551
  ]
1625
1552
  },
1626
- "location": {
1627
- "$ref": "#/definitions/Location"
1553
+ "level": {
1554
+ "type": [
1555
+ "string",
1556
+ "number"
1557
+ ]
1628
1558
  },
1629
1559
  "content": {
1630
- "type": "array",
1631
- "items": {
1632
- "$ref": "#/definitions/PodNode"
1633
- }
1634
- },
1635
- "margin": {
1636
- "type": "string"
1637
- },
1638
- "config": {
1639
1560
  "type": "array",
1640
1561
  "items": {
1641
1562
  "anyOf": [
1642
1563
  {
1643
- "$ref": "#/definitions/BrokenConfigItem"
1564
+ "$ref": "#/definitions/BlankLine"
1644
1565
  },
1645
1566
  {
1646
- "$ref": "#/definitions/ConfigItem"
1567
+ "$ref": "#/definitions/List"
1568
+ },
1569
+ {
1570
+ "$ref": "#/definitions/BlockItem"
1647
1571
  }
1648
1572
  ]
1649
1573
  }
1650
1574
  },
1651
- "id": {
1652
- "type": "string"
1575
+ "list": {
1576
+ "type": "string",
1577
+ "enum": [
1578
+ "itemized"
1579
+ ]
1653
1580
  }
1654
1581
  },
1655
1582
  "required": [
1656
1583
  "content",
1657
- "location",
1658
- "margin",
1659
- "name",
1584
+ "level",
1585
+ "list",
1660
1586
  "type"
1661
1587
  ]
1662
1588
  },
1663
- "BlockData": {
1589
+ "BlockItem": {
1664
1590
  "type": "object",
1665
1591
  "properties": {
1666
1592
  "name": {
1667
1593
  "type": "string",
1668
1594
  "enum": [
1669
- "data"
1595
+ "item"
1596
+ ]
1597
+ },
1598
+ "content": {
1599
+ "type": "array",
1600
+ "items": {
1601
+ "$ref": "#/definitions/PodNode"
1602
+ }
1603
+ },
1604
+ "level": {
1605
+ "type": [
1606
+ "string",
1607
+ "number"
1670
1608
  ]
1671
1609
  },
1672
1610
  "type": {
@@ -1678,12 +1616,6 @@
1678
1616
  "location": {
1679
1617
  "$ref": "#/definitions/Location"
1680
1618
  },
1681
- "content": {
1682
- "type": "array",
1683
- "items": {
1684
- "$ref": "#/definitions/PodNode"
1685
- }
1686
- },
1687
1619
  "margin": {
1688
1620
  "type": "string"
1689
1621
  },
@@ -1706,123 +1638,78 @@
1706
1638
  },
1707
1639
  "required": [
1708
1640
  "content",
1641
+ "level",
1709
1642
  "location",
1710
1643
  "margin",
1711
1644
  "name",
1712
1645
  "type"
1713
1646
  ]
1714
1647
  },
1715
- "BlockComment": {
1648
+ "BlockConfig": {
1716
1649
  "type": "object",
1717
1650
  "properties": {
1718
1651
  "name": {
1719
- "type": "string",
1720
- "enum": [
1721
- "comment"
1722
- ]
1652
+ "type": "string"
1723
1653
  },
1724
1654
  "type": {
1725
1655
  "type": "string",
1726
1656
  "enum": [
1727
- "block"
1657
+ "config"
1728
1658
  ]
1729
1659
  },
1730
- "location": {
1731
- "$ref": "#/definitions/Location"
1732
- },
1733
- "content": {
1734
- "type": "array",
1735
- "items": {
1736
- "$ref": "#/definitions/PodNode"
1737
- }
1738
- },
1739
- "margin": {
1740
- "type": "string"
1741
- },
1742
1660
  "config": {
1743
1661
  "type": "array",
1744
1662
  "items": {
1745
- "anyOf": [
1746
- {
1747
- "$ref": "#/definitions/BrokenConfigItem"
1748
- },
1749
- {
1750
- "$ref": "#/definitions/ConfigItem"
1751
- }
1752
- ]
1663
+ "$ref": "#/definitions/ConfigItem"
1753
1664
  }
1754
1665
  },
1755
- "id": {
1666
+ "margin": {
1756
1667
  "type": "string"
1757
1668
  }
1758
1669
  },
1759
1670
  "required": [
1760
- "content",
1761
- "location",
1671
+ "config",
1762
1672
  "margin",
1763
1673
  "name",
1764
1674
  "type"
1765
1675
  ]
1766
1676
  },
1767
- "BlockDefn": {
1677
+ "Alias": {
1768
1678
  "type": "object",
1769
1679
  "properties": {
1770
1680
  "name": {
1771
- "type": "string",
1772
- "enum": [
1773
- "defn"
1774
- ]
1681
+ "type": "string"
1775
1682
  },
1776
1683
  "type": {
1777
1684
  "type": "string",
1778
1685
  "enum": [
1779
- "block"
1686
+ "alias"
1780
1687
  ]
1781
1688
  },
1782
- "location": {
1783
- "$ref": "#/definitions/Location"
1784
- },
1785
- "content": {
1689
+ "replacement": {
1786
1690
  "type": "array",
1787
1691
  "items": {
1788
- "$ref": "#/definitions/PodNode"
1692
+ "type": "string"
1789
1693
  }
1790
1694
  },
1791
1695
  "margin": {
1792
1696
  "type": "string"
1793
- },
1794
- "config": {
1795
- "type": "array",
1796
- "items": {
1797
- "anyOf": [
1798
- {
1799
- "$ref": "#/definitions/BrokenConfigItem"
1800
- },
1801
- {
1802
- "$ref": "#/definitions/ConfigItem"
1803
- }
1804
- ]
1805
- }
1806
- },
1807
- "id": {
1808
- "type": "string"
1809
1697
  }
1810
1698
  },
1811
1699
  "required": [
1812
- "content",
1813
- "location",
1814
1700
  "margin",
1815
1701
  "name",
1702
+ "replacement",
1816
1703
  "type"
1817
1704
  ]
1818
1705
  },
1819
- "BlockOutput": {
1706
+ "BlockToc": {
1820
1707
  "type": "object",
1821
1708
  "properties": {
1822
1709
  "name": {
1823
1710
  "type": "string",
1824
1711
  "enum": [
1825
- "output"
1712
+ "toc"
1826
1713
  ]
1827
1714
  },
1828
1715
  "type": {
@@ -1868,15 +1755,37 @@
1868
1755
  "type"
1869
1756
  ]
1870
1757
  },
1871
- "BlockInput": {
1758
+ "BlockPicture": {
1872
1759
  "type": "object",
1873
1760
  "properties": {
1874
1761
  "name": {
1875
1762
  "type": "string",
1876
1763
  "enum": [
1877
- "input"
1764
+ "picture"
1878
1765
  ]
1879
1766
  },
1767
+ "caption": {
1768
+ "type": "string"
1769
+ },
1770
+ "link": {
1771
+ "type": "string"
1772
+ },
1773
+ "content": {
1774
+ "type": "array",
1775
+ "items": [
1776
+ {
1777
+ "$ref": "#/definitions/Image"
1778
+ },
1779
+ {
1780
+ "$ref": "#/definitions/BlockCaption"
1781
+ }
1782
+ ],
1783
+ "minItems": 2,
1784
+ "maxItems": 2
1785
+ },
1786
+ "margin": {
1787
+ "type": "string"
1788
+ },
1880
1789
  "type": {
1881
1790
  "type": "string",
1882
1791
  "enum": [
@@ -1886,15 +1795,6 @@
1886
1795
  "location": {
1887
1796
  "$ref": "#/definitions/Location"
1888
1797
  },
1889
- "content": {
1890
- "type": "array",
1891
- "items": {
1892
- "$ref": "#/definitions/PodNode"
1893
- }
1894
- },
1895
- "margin": {
1896
- "type": "string"
1897
- },
1898
1798
  "config": {
1899
1799
  "type": "array",
1900
1800
  "items": {
@@ -1920,15 +1820,37 @@
1920
1820
  "type"
1921
1821
  ]
1922
1822
  },
1923
- "BlockPara": {
1823
+ "BlockImage": {
1924
1824
  "type": "object",
1925
1825
  "properties": {
1926
1826
  "name": {
1927
1827
  "type": "string",
1928
1828
  "enum": [
1929
- "para"
1829
+ "image"
1930
1830
  ]
1931
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
+ },
1932
1854
  "type": {
1933
1855
  "type": "string",
1934
1856
  "enum": [
@@ -1938,15 +1860,6 @@
1938
1860
  "location": {
1939
1861
  "$ref": "#/definitions/Location"
1940
1862
  },
1941
- "content": {
1942
- "type": "array",
1943
- "items": {
1944
- "$ref": "#/definitions/PodNode"
1945
- }
1946
- },
1947
- "margin": {
1948
- "type": "string"
1949
- },
1950
1863
  "config": {
1951
1864
  "type": "array",
1952
1865
  "items": {
@@ -1972,280 +1885,488 @@
1972
1885
  "type"
1973
1886
  ]
1974
1887
  },
1975
- "BlockCode": {
1888
+ "Separator": {
1976
1889
  "type": "object",
1977
1890
  "properties": {
1978
- "name": {
1891
+ "type": {
1979
1892
  "type": "string",
1980
1893
  "enum": [
1981
- "code"
1894
+ "separator"
1982
1895
  ]
1983
1896
  },
1897
+ "text": {
1898
+ "type": "string"
1899
+ }
1900
+ },
1901
+ "required": [
1902
+ "text",
1903
+ "type"
1904
+ ]
1905
+ },
1906
+ "FormattingCodeA": {
1907
+ "type": "object",
1908
+ "properties": {
1984
1909
  "type": {
1985
1910
  "type": "string",
1986
1911
  "enum": [
1987
- "block"
1912
+ "fcode"
1988
1913
  ]
1989
1914
  },
1990
- "location": {
1991
- "$ref": "#/definitions/Location"
1915
+ "name": {
1916
+ "type": "string",
1917
+ "enum": [
1918
+ "A"
1919
+ ]
1992
1920
  },
1993
1921
  "content": {
1994
- "type": "array",
1995
- "items": {
1996
- "$ref": "#/definitions/PodNode"
1997
- }
1922
+ "anyOf": [
1923
+ {
1924
+ "$ref": "#/definitions/Text"
1925
+ },
1926
+ {
1927
+ "type": "string"
1928
+ }
1929
+ ]
1930
+ }
1931
+ },
1932
+ "required": [
1933
+ "content",
1934
+ "name",
1935
+ "type"
1936
+ ]
1937
+ },
1938
+ "FormattingCodeC": {
1939
+ "type": "object",
1940
+ "properties": {
1941
+ "type": {
1942
+ "type": "string",
1943
+ "enum": [
1944
+ "fcode"
1945
+ ]
1998
1946
  },
1999
- "margin": {
2000
- "type": "string"
1947
+ "name": {
1948
+ "type": "string",
1949
+ "enum": [
1950
+ "C"
1951
+ ]
2001
1952
  },
2002
- "config": {
1953
+ "content": {
2003
1954
  "type": "array",
2004
1955
  "items": {
2005
1956
  "anyOf": [
2006
1957
  {
2007
- "$ref": "#/definitions/BrokenConfigItem"
1958
+ "$ref": "#/definitions/FormattingCodeA"
2008
1959
  },
2009
1960
  {
2010
- "$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"
2011
2001
  }
2012
2002
  ]
2013
2003
  }
2014
- },
2015
- "id": {
2016
- "type": "string"
2017
2004
  }
2018
2005
  },
2019
2006
  "required": [
2020
- "content",
2021
- "location",
2022
- "margin",
2023
2007
  "name",
2024
2008
  "type"
2025
2009
  ]
2026
2010
  },
2027
- "BlockToc": {
2011
+ "FormattingCodeB": {
2028
2012
  "type": "object",
2029
2013
  "properties": {
2014
+ "type": {
2015
+ "type": "string",
2016
+ "enum": [
2017
+ "fcode"
2018
+ ]
2019
+ },
2030
2020
  "name": {
2031
2021
  "type": "string",
2032
2022
  "enum": [
2033
- "toc"
2023
+ "B"
2034
2024
  ]
2035
2025
  },
2026
+ "content": {
2027
+ "type": "array",
2028
+ "items": {
2029
+ "$ref": "#/definitions/PodNode"
2030
+ }
2031
+ }
2032
+ },
2033
+ "required": [
2034
+ "name",
2035
+ "type"
2036
+ ]
2037
+ },
2038
+ "FormattingCodeD": {
2039
+ "type": "object",
2040
+ "properties": {
2036
2041
  "type": {
2037
2042
  "type": "string",
2038
2043
  "enum": [
2039
- "block"
2044
+ "fcode"
2040
2045
  ]
2041
2046
  },
2042
- "location": {
2043
- "$ref": "#/definitions/Location"
2047
+ "name": {
2048
+ "type": "string",
2049
+ "enum": [
2050
+ "D"
2051
+ ]
2044
2052
  },
2045
- "content": {
2053
+ "synonyms": {
2046
2054
  "type": "array",
2047
2055
  "items": {
2048
- "$ref": "#/definitions/PodNode"
2056
+ "type": "string"
2049
2057
  }
2050
2058
  },
2051
- "margin": {
2059
+ "content": {
2052
2060
  "type": "string"
2061
+ }
2062
+ },
2063
+ "required": [
2064
+ "content",
2065
+ "name",
2066
+ "synonyms",
2067
+ "type"
2068
+ ]
2069
+ },
2070
+ "FormattingCodeE": {
2071
+ "type": "object",
2072
+ "properties": {
2073
+ "type": {
2074
+ "type": "string",
2075
+ "enum": [
2076
+ "fcode"
2077
+ ]
2053
2078
  },
2054
- "config": {
2079
+ "name": {
2080
+ "type": "string",
2081
+ "enum": [
2082
+ "E"
2083
+ ]
2084
+ },
2085
+ "content": {
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
+ ]
2106
+ },
2107
+ {
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
+ ]
2060
2124
  },
2061
2125
  {
2062
- "$ref": "#/definitions/ConfigItem"
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
2144
  }
2066
- },
2067
- "id": {
2068
- "type": "string"
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": "string"
2260
+ }
2261
+ ]
2262
+ }
2263
+ },
2264
+ "required": [
2265
+ "content",
2266
+ "meta",
2267
+ "name",
2268
+ "type"
2269
+ ]
2270
+ },
2271
+ "FormattingCodeN": {
2272
+ "type": "object",
2273
+ "properties": {
2198
2274
  "type": {
2199
2275
  "type": "string",
2200
2276
  "enum": [
2201
- "block"
2277
+ "fcode"
2202
2278
  ]
2203
2279
  },
2204
- "location": {
2205
- "$ref": "#/definitions/Location"
2280
+ "name": {
2281
+ "type": "string",
2282
+ "enum": [
2283
+ "N"
2284
+ ]
2206
2285
  },
2207
2286
  "content": {
2208
- "type": "array",
2209
- "items": {
2210
- "$ref": "#/definitions/PodNode"
2211
- }
2212
- },
2213
- "margin": {
2214
- "type": "string"
2215
- },
2216
- "config": {
2217
2287
  "type": "array",
2218
2288
  "items": {
2219
2289
  "anyOf": [
2220
2290
  {
2221
- "$ref": "#/definitions/BrokenConfigItem"
2291
+ "$ref": "#/definitions/FormattingCodeA"
2222
2292
  },
2223
2293
  {
2224
- "$ref": "#/definitions/ConfigItem"
2294
+ "$ref": "#/definitions/FormattingCodeC"
2295
+ },
2296
+ {
2297
+ "$ref": "#/definitions/FormattingCodeB"
2298
+ },
2299
+ {
2300
+ "$ref": "#/definitions/FormattingCodeD"
2301
+ },
2302
+ {
2303
+ "$ref": "#/definitions/FormattingCodeE"
2304
+ },
2305
+ {
2306
+ "$ref": "#/definitions/FormattingCodeF"
2307
+ },
2308
+ {
2309
+ "$ref": "#/definitions/FormattingCodeI"
2310
+ },
2311
+ {
2312
+ "$ref": "#/definitions/FormattingCodeL"
2313
+ },
2314
+ {
2315
+ "$ref": "#/definitions/FormattingCodeN"
2316
+ },
2317
+ {
2318
+ "$ref": "#/definitions/FormattingCodeX"
2319
+ },
2320
+ {
2321
+ "$ref": "#/definitions/FormattingCodeZ"
2322
+ },
2323
+ {
2324
+ "$ref": "#/definitions/FormattingCodeV"
2325
+ },
2326
+ {
2327
+ "$ref": "#/definitions/FormattingCodeS"
2328
+ },
2329
+ {
2330
+ "$ref": "#/definitions/FormattingCodeAny"
2331
+ },
2332
+ {
2333
+ "type": "string"
2225
2334
  }
2226
2335
  ]
2227
2336
  }
2228
- },
2229
- "id": {
2230
- "type": "string"
2231
2337
  }
2232
2338
  },
2233
2339
  "required": [
2234
- "content",
2235
- "level",
2236
- "location",
2237
- "margin",
2238
2340
  "name",
2239
2341
  "type"
2240
2342
  ]
2241
2343
  },
2242
- "BlockTable": {
2344
+ "FormattingCodeX": {
2243
2345
  "type": "object",
2244
2346
  "properties": {
2347
+ "type": {
2348
+ "type": "string",
2349
+ "enum": [
2350
+ "fcode"
2351
+ ]
2352
+ },
2245
2353
  "name": {
2246
2354
  "type": "string",
2247
2355
  "enum": [
2248
- "table"
2356
+ "X"
2357
+ ]
2358
+ },
2359
+ "entry": {
2360
+ "anyOf": [
2361
+ {
2362
+ "type": "array",
2363
+ "items": {
2364
+ "type": "string"
2365
+ }
2366
+ },
2367
+ {
2368
+ "type": "null"
2369
+ }
2249
2370
  ]
2250
2371
  },
2251
2372
  "content": {
@@ -2253,242 +2374,284 @@
2253
2374
  "items": {
2254
2375
  "anyOf": [
2255
2376
  {
2256
- "$ref": "#/definitions/BlankLine"
2377
+ "$ref": "#/definitions/FormattingCodeA"
2378
+ },
2379
+ {
2380
+ "$ref": "#/definitions/FormattingCodeC"
2381
+ },
2382
+ {
2383
+ "$ref": "#/definitions/FormattingCodeB"
2384
+ },
2385
+ {
2386
+ "$ref": "#/definitions/FormattingCodeD"
2387
+ },
2388
+ {
2389
+ "$ref": "#/definitions/FormattingCodeE"
2390
+ },
2391
+ {
2392
+ "$ref": "#/definitions/FormattingCodeF"
2393
+ },
2394
+ {
2395
+ "$ref": "#/definitions/FormattingCodeI"
2396
+ },
2397
+ {
2398
+ "$ref": "#/definitions/FormattingCodeL"
2399
+ },
2400
+ {
2401
+ "$ref": "#/definitions/FormattingCodeN"
2402
+ },
2403
+ {
2404
+ "$ref": "#/definitions/FormattingCodeX"
2257
2405
  },
2258
2406
  {
2259
- "$ref": "#/definitions/TableRow"
2407
+ "$ref": "#/definitions/FormattingCodeZ"
2260
2408
  },
2261
2409
  {
2262
- "$ref": "#/definitions/TableHead"
2410
+ "$ref": "#/definitions/FormattingCodeV"
2263
2411
  },
2264
2412
  {
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": [
2413
+ "$ref": "#/definitions/FormattingCodeS"
2414
+ },
2289
2415
  {
2290
- "$ref": "#/definitions/BrokenConfigItem"
2416
+ "$ref": "#/definitions/FormattingCodeAny"
2291
2417
  },
2292
2418
  {
2293
- "$ref": "#/definitions/ConfigItem"
2419
+ "type": "string"
2294
2420
  }
2295
2421
  ]
2296
2422
  }
2297
- },
2298
- "id": {
2299
- "type": "string"
2300
2423
  }
2301
2424
  },
2302
2425
  "required": [
2303
- "content",
2304
- "location",
2305
- "margin",
2426
+ "entry",
2306
2427
  "name",
2307
2428
  "type"
2308
2429
  ]
2309
2430
  },
2310
- "TableRow": {
2431
+ "FormattingCodeZ": {
2311
2432
  "type": "object",
2312
2433
  "properties": {
2313
- "name": {
2434
+ "type": {
2314
2435
  "type": "string",
2315
2436
  "enum": [
2316
- "table_row"
2437
+ "fcode"
2317
2438
  ]
2318
2439
  },
2319
- "type": {
2440
+ "name": {
2320
2441
  "type": "string",
2321
2442
  "enum": [
2322
- "block"
2443
+ "Z"
2323
2444
  ]
2324
2445
  },
2325
2446
  "content": {
2326
- "type": "array",
2327
- "items": {
2328
- "$ref": "#/definitions/TableCell"
2329
- }
2447
+ "type": "string"
2330
2448
  }
2331
2449
  },
2332
2450
  "required": [
2333
- "content",
2334
2451
  "name",
2335
2452
  "type"
2336
2453
  ]
2337
2454
  },
2338
- "TableCell": {
2455
+ "FormattingCodeV": {
2339
2456
  "type": "object",
2340
2457
  "properties": {
2341
- "name": {
2458
+ "type": {
2342
2459
  "type": "string",
2343
2460
  "enum": [
2344
- "table_cell"
2461
+ "fcode"
2345
2462
  ]
2346
2463
  },
2347
- "type": {
2464
+ "name": {
2348
2465
  "type": "string",
2349
2466
  "enum": [
2350
- "block"
2467
+ "V"
2351
2468
  ]
2352
2469
  },
2353
2470
  "content": {
2354
- "type": "array",
2355
- "items": {
2356
- "type": "string"
2357
- }
2471
+ "type": "string"
2358
2472
  }
2359
2473
  },
2360
2474
  "required": [
2361
- "content",
2362
2475
  "name",
2363
2476
  "type"
2364
2477
  ]
2365
2478
  },
2366
- "TableHead": {
2479
+ "FormattingCodeS": {
2367
2480
  "type": "object",
2368
2481
  "properties": {
2482
+ "type": {
2483
+ "type": "string",
2484
+ "enum": [
2485
+ "fcode"
2486
+ ]
2487
+ },
2369
2488
  "name": {
2370
2489
  "type": "string",
2371
2490
  "enum": [
2372
- "table_head"
2491
+ "S"
2373
2492
  ]
2374
2493
  },
2494
+ "content": {
2495
+ "anyOf": [
2496
+ {
2497
+ "$ref": "#/definitions/Text"
2498
+ },
2499
+ {
2500
+ "type": "string"
2501
+ }
2502
+ ]
2503
+ }
2504
+ },
2505
+ "required": [
2506
+ "name",
2507
+ "type"
2508
+ ]
2509
+ },
2510
+ "FormattingCodeAny": {
2511
+ "type": "object",
2512
+ "properties": {
2375
2513
  "type": {
2376
2514
  "type": "string",
2377
2515
  "enum": [
2378
- "block"
2516
+ "fcode"
2379
2517
  ]
2380
2518
  },
2519
+ "name": {
2520
+ "type": "string"
2521
+ },
2381
2522
  "content": {
2382
2523
  "type": "array",
2383
2524
  "items": {
2384
- "$ref": "#/definitions/TableCell"
2525
+ "anyOf": [
2526
+ {
2527
+ "$ref": "#/definitions/FormattingCodeA"
2528
+ },
2529
+ {
2530
+ "$ref": "#/definitions/FormattingCodeC"
2531
+ },
2532
+ {
2533
+ "$ref": "#/definitions/FormattingCodeB"
2534
+ },
2535
+ {
2536
+ "$ref": "#/definitions/FormattingCodeD"
2537
+ },
2538
+ {
2539
+ "$ref": "#/definitions/FormattingCodeE"
2540
+ },
2541
+ {
2542
+ "$ref": "#/definitions/FormattingCodeF"
2543
+ },
2544
+ {
2545
+ "$ref": "#/definitions/FormattingCodeI"
2546
+ },
2547
+ {
2548
+ "$ref": "#/definitions/FormattingCodeL"
2549
+ },
2550
+ {
2551
+ "$ref": "#/definitions/FormattingCodeN"
2552
+ },
2553
+ {
2554
+ "$ref": "#/definitions/FormattingCodeX"
2555
+ },
2556
+ {
2557
+ "$ref": "#/definitions/FormattingCodeZ"
2558
+ },
2559
+ {
2560
+ "$ref": "#/definitions/FormattingCodeV"
2561
+ },
2562
+ {
2563
+ "$ref": "#/definitions/FormattingCodeS"
2564
+ },
2565
+ {
2566
+ "$ref": "#/definitions/FormattingCodeAny"
2567
+ },
2568
+ {
2569
+ "type": "string"
2570
+ }
2571
+ ]
2385
2572
  }
2386
2573
  }
2387
2574
  },
2388
2575
  "required": [
2389
- "content",
2390
2576
  "name",
2391
2577
  "type"
2392
2578
  ]
2393
2579
  },
2394
- "TableSeparator": {
2580
+ "Toc": {
2395
2581
  "type": "object",
2396
2582
  "properties": {
2397
2583
  "type": {
2398
2584
  "type": "string",
2399
2585
  "enum": [
2400
- "separator"
2586
+ "toc"
2401
2587
  ]
2402
2588
  },
2403
- "text": {
2589
+ "title": {
2404
2590
  "type": "string"
2591
+ },
2592
+ "content": {
2593
+ "$ref": "#/definitions/TocList"
2405
2594
  }
2406
2595
  },
2407
2596
  "required": [
2408
- "text",
2597
+ "content",
2409
2598
  "type"
2410
2599
  ]
2411
2600
  },
2412
- "BlockNamed": {
2601
+ "TocList": {
2413
2602
  "type": "object",
2414
2603
  "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
2604
  "type": {
2459
2605
  "type": "string",
2460
2606
  "enum": [
2461
- "block"
2607
+ "toc-list"
2462
2608
  ]
2463
2609
  },
2464
- "location": {
2465
- "$ref": "#/definitions/Location"
2466
- },
2467
- "margin": {
2468
- "type": "string"
2610
+ "level": {
2611
+ "type": "number"
2469
2612
  },
2470
- "config": {
2613
+ "content": {
2471
2614
  "type": "array",
2472
2615
  "items": {
2473
2616
  "anyOf": [
2474
2617
  {
2475
- "$ref": "#/definitions/BrokenConfigItem"
2618
+ "$ref": "#/definitions/TocList"
2476
2619
  },
2477
2620
  {
2478
- "$ref": "#/definitions/ConfigItem"
2621
+ "$ref": "#/definitions/TocItem"
2479
2622
  }
2480
2623
  ]
2481
2624
  }
2625
+ }
2626
+ },
2627
+ "required": [
2628
+ "content",
2629
+ "level",
2630
+ "type"
2631
+ ]
2632
+ },
2633
+ "TocItem": {
2634
+ "type": "object",
2635
+ "properties": {
2636
+ "type": {
2637
+ "type": "string",
2638
+ "enum": [
2639
+ "toc-item"
2640
+ ]
2482
2641
  },
2483
- "id": {
2484
- "type": "string"
2642
+ "node": {
2643
+ "$ref": "#/definitions/PodNode"
2644
+ },
2645
+ "content": {
2646
+ "type": "array",
2647
+ "items": {
2648
+ "$ref": "#/definitions/PodNode"
2649
+ }
2485
2650
  }
2486
2651
  },
2487
2652
  "required": [
2488
2653
  "content",
2489
- "location",
2490
- "margin",
2491
- "name",
2654
+ "node",
2492
2655
  "type"
2493
2656
  ]
2494
2657
  }