@podlite/schema 0.0.67 → 0.0.69

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.
Files changed (55) hide show
  1. package/CHANGELOG.podlite +32 -0
  2. package/esm/ast-helpers.d.ts +25 -1
  3. package/esm/ast-helpers.js +101 -2
  4. package/esm/ast-helpers.js.map +1 -1
  5. package/esm/attribute-names.d.ts +5 -0
  6. package/esm/attribute-names.js +36 -0
  7. package/esm/attribute-names.js.map +1 -0
  8. package/esm/exportAny.js +2 -2
  9. package/esm/exportAny.js.map +1 -1
  10. package/esm/exportHtml.js +50 -17
  11. package/esm/exportHtml.js.map +1 -1
  12. package/esm/exportMarkdown.js +28 -16
  13. package/esm/exportMarkdown.js.map +1 -1
  14. package/esm/folded-sections.d.ts +1 -0
  15. package/esm/folded-sections.js +80 -0
  16. package/esm/folded-sections.js.map +1 -0
  17. package/esm/grammarfc.js +6099 -15834
  18. package/esm/grammarfc.js.map +1 -1
  19. package/esm/helpers/corePlugins.js +9 -3
  20. package/esm/helpers/corePlugins.js.map +1 -1
  21. package/esm/helpers/html-attr.d.ts +1 -0
  22. package/esm/helpers/html-attr.js +6 -0
  23. package/esm/helpers/html-attr.js.map +1 -0
  24. package/esm/index.d.ts +4 -1
  25. package/esm/index.js +4 -1
  26. package/esm/index.js.map +1 -1
  27. package/esm/pluggableParser.d.ts +1 -1
  28. package/esm/pluggableParser.js +4 -1
  29. package/esm/pluggableParser.js.map +1 -1
  30. package/esm/types.d.ts +27 -16
  31. package/esm/version.d.ts +1 -1
  32. package/esm/version.js +1 -1
  33. package/lib/ast-helpers.d.ts +25 -1
  34. package/lib/ast-helpers.js +106 -3
  35. package/lib/attribute-names.d.ts +5 -0
  36. package/lib/attribute-names.js +41 -0
  37. package/lib/exportAny.js +1 -1
  38. package/lib/exportHtml.js +52 -19
  39. package/lib/exportMarkdown.js +27 -15
  40. package/lib/folded-sections.d.ts +1 -0
  41. package/lib/folded-sections.js +84 -0
  42. package/lib/grammarfc.js +6099 -15834
  43. package/lib/helpers/corePlugins.js +9 -3
  44. package/lib/helpers/html-attr.d.ts +1 -0
  45. package/lib/helpers/html-attr.js +10 -0
  46. package/lib/index.d.ts +4 -1
  47. package/lib/index.js +7 -1
  48. package/lib/pluggableParser.d.ts +1 -1
  49. package/lib/pluggableParser.js +5 -1
  50. package/lib/types.d.ts +27 -16
  51. package/lib/version.d.ts +1 -1
  52. package/lib/version.js +1 -1
  53. package/package.json +1 -1
  54. package/schema/AstTree.json +588 -436
  55. package/schema/PodliteDocument.json +588 -436
@@ -51,6 +51,12 @@
51
51
  {
52
52
  "$ref": "#/definitions/Para"
53
53
  },
54
+ {
55
+ "$ref": "#/definitions/ParaTerm"
56
+ },
57
+ {
58
+ "$ref": "#/definitions/ParaBuilt"
59
+ },
54
60
  {
55
61
  "$ref": "#/definitions/Text"
56
62
  },
@@ -1081,6 +1087,12 @@
1081
1087
  {
1082
1088
  "$ref": "#/definitions/Para"
1083
1089
  },
1090
+ {
1091
+ "$ref": "#/definitions/ParaTerm"
1092
+ },
1093
+ {
1094
+ "$ref": "#/definitions/ParaBuilt"
1095
+ },
1084
1096
  {
1085
1097
  "$ref": "#/definitions/Text"
1086
1098
  },
@@ -1192,48 +1204,174 @@
1192
1204
  "type"
1193
1205
  ]
1194
1206
  },
1195
- "Text": {
1207
+ "ParaTerm": {
1196
1208
  "type": "object",
1197
1209
  "properties": {
1198
1210
  "type": {
1199
1211
  "type": "string",
1200
- "const": "text"
1201
- },
1202
- "value": {
1203
- "type": "string"
1212
+ "const": "para"
1204
1213
  },
1205
- "guarded": {
1206
- "type": "boolean"
1207
- }
1208
- },
1209
- "required": [
1210
- "type",
1211
- "value"
1212
- ]
1213
- },
1214
- "Code": {
1215
- "type": "object",
1216
- "properties": {
1217
- "type": {
1214
+ "name": {
1218
1215
  "type": "string",
1219
- "const": "code"
1216
+ "const": "term"
1220
1217
  },
1221
1218
  "text": {
1222
1219
  "type": "string"
1223
1220
  },
1224
- "margin": {
1225
- "type": "string"
1226
- },
1227
- "location": {
1228
- "$ref": "#/definitions/Location"
1229
- },
1230
1221
  "content": {
1231
1222
  "type": "array",
1232
1223
  "items": {
1233
1224
  "anyOf": [
1225
+ {
1226
+ "$ref": "#/definitions/Ambient"
1227
+ },
1228
+ {
1229
+ "$ref": "#/definitions/BlockPod"
1230
+ },
1231
+ {
1232
+ "$ref": "#/definitions/BlockData"
1233
+ },
1234
+ {
1235
+ "$ref": "#/definitions/BlockFormula"
1236
+ },
1237
+ {
1238
+ "$ref": "#/definitions/BlockCode"
1239
+ },
1240
+ {
1241
+ "$ref": "#/definitions/BlankLine"
1242
+ },
1243
+ {
1244
+ "$ref": "#/definitions/BlockNested"
1245
+ },
1246
+ {
1247
+ "$ref": "#/definitions/BlockMarkdown"
1248
+ },
1249
+ {
1250
+ "$ref": "#/definitions/BlockOutput"
1251
+ },
1252
+ {
1253
+ "$ref": "#/definitions/BlockInput"
1254
+ },
1255
+ {
1256
+ "$ref": "#/definitions/BlockInclude"
1257
+ },
1258
+ {
1259
+ "$ref": "#/definitions/BlockPara"
1260
+ },
1261
+ {
1262
+ "$ref": "#/definitions/BlockHead"
1263
+ },
1264
+ {
1265
+ "$ref": "#/definitions/BlockComment"
1266
+ },
1267
+ {
1268
+ "$ref": "#/definitions/BlockDefn"
1269
+ },
1270
+ {
1271
+ "$ref": "#/definitions/Para"
1272
+ },
1273
+ {
1274
+ "$ref": "#/definitions/ParaTerm"
1275
+ },
1276
+ {
1277
+ "$ref": "#/definitions/ParaBuilt"
1278
+ },
1279
+ {
1280
+ "$ref": "#/definitions/Text"
1281
+ },
1282
+ {
1283
+ "$ref": "#/definitions/Code"
1284
+ },
1285
+ {
1286
+ "$ref": "#/definitions/BlockNamed"
1287
+ },
1234
1288
  {
1235
1289
  "$ref": "#/definitions/Verbatim"
1236
1290
  },
1291
+ {
1292
+ "$ref": "#/definitions/BlockTable"
1293
+ },
1294
+ {
1295
+ "$ref": "#/definitions/List"
1296
+ },
1297
+ {
1298
+ "$ref": "#/definitions/BlockConfig"
1299
+ },
1300
+ {
1301
+ "$ref": "#/definitions/BlockItem"
1302
+ },
1303
+ {
1304
+ "$ref": "#/definitions/Alias"
1305
+ },
1306
+ {
1307
+ "$ref": "#/definitions/BlockToc"
1308
+ },
1309
+ {
1310
+ "$ref": "#/definitions/BlockPicture"
1311
+ },
1312
+ {
1313
+ "$ref": "#/definitions/BlockImage"
1314
+ },
1315
+ {
1316
+ "$ref": "#/definitions/Image"
1317
+ },
1318
+ {
1319
+ "$ref": "#/definitions/RootBlock"
1320
+ },
1321
+ {
1322
+ "$ref": "#/definitions/Separator"
1323
+ },
1324
+ {
1325
+ "$ref": "#/definitions/BlockCaption"
1326
+ },
1327
+ {
1328
+ "$ref": "#/definitions/FormattingCodeA"
1329
+ },
1330
+ {
1331
+ "$ref": "#/definitions/FormattingCodeC"
1332
+ },
1333
+ {
1334
+ "$ref": "#/definitions/FormattingCodeB"
1335
+ },
1336
+ {
1337
+ "$ref": "#/definitions/FormattingCodeD"
1338
+ },
1339
+ {
1340
+ "$ref": "#/definitions/FormattingCodeE"
1341
+ },
1342
+ {
1343
+ "$ref": "#/definitions/FormattingCodeF"
1344
+ },
1345
+ {
1346
+ "$ref": "#/definitions/FormattingCodeI"
1347
+ },
1348
+ {
1349
+ "$ref": "#/definitions/FormattingCodeL"
1350
+ },
1351
+ {
1352
+ "$ref": "#/definitions/FormattingCodeW"
1353
+ },
1354
+ {
1355
+ "$ref": "#/definitions/FormattingCodeN"
1356
+ },
1357
+ {
1358
+ "$ref": "#/definitions/FormattingCodeX"
1359
+ },
1360
+ {
1361
+ "$ref": "#/definitions/FormattingCodeZ"
1362
+ },
1363
+ {
1364
+ "$ref": "#/definitions/FormattingCodeV"
1365
+ },
1366
+ {
1367
+ "$ref": "#/definitions/FormattingCodeS"
1368
+ },
1369
+ {
1370
+ "$ref": "#/definitions/FormattingCodeAny"
1371
+ },
1372
+ {
1373
+ "$ref": "#/definitions/Toc"
1374
+ },
1237
1375
  {
1238
1376
  "type": "string"
1239
1377
  }
@@ -1243,110 +1381,312 @@
1243
1381
  },
1244
1382
  "required": [
1245
1383
  "content",
1246
- "location",
1247
- "margin",
1384
+ "name",
1248
1385
  "text",
1249
1386
  "type"
1250
1387
  ]
1251
1388
  },
1252
- "BlockNamed": {
1389
+ "ParaBuilt": {
1253
1390
  "type": "object",
1254
1391
  "properties": {
1255
- "name": {
1256
- "type": "string"
1257
- },
1258
- "content": {
1259
- "anyOf": [
1260
- {
1261
- "$ref": "#/definitions/RootBlock"
1262
- },
1263
- {
1264
- "type": "array",
1265
- "items": [
1266
- {
1267
- "anyOf": [
1268
- {
1269
- "$ref": "#/definitions/Para"
1270
- },
1271
- {
1272
- "$ref": "#/definitions/Code"
1273
- },
1274
- {
1275
- "$ref": "#/definitions/Verbatim"
1276
- }
1277
- ]
1278
- }
1279
- ],
1280
- "minItems": 0,
1281
- "maxItems": 1
1282
- },
1283
- {
1284
- "type": "array",
1285
- "items": {
1286
- "anyOf": [
1287
- {
1288
- "$ref": "#/definitions/Image"
1289
- },
1290
- {
1291
- "$ref": "#/definitions/BlockCaption"
1292
- }
1293
- ]
1294
- }
1295
- }
1296
- ]
1297
- },
1298
- "margin": {
1299
- "type": "string"
1300
- },
1301
1392
  "type": {
1302
1393
  "type": "string",
1303
- "const": "block"
1304
- },
1305
- "location": {
1306
- "$ref": "#/definitions/Location"
1394
+ "const": "para"
1307
1395
  },
1308
- "config": {
1396
+ "content": {
1309
1397
  "type": "array",
1310
1398
  "items": {
1311
1399
  "anyOf": [
1312
1400
  {
1313
- "$ref": "#/definitions/BrokenConfigItem"
1401
+ "$ref": "#/definitions/Ambient"
1314
1402
  },
1315
1403
  {
1316
- "$ref": "#/definitions/ConfigItem"
1317
- }
1318
- ]
1319
- }
1320
- },
1321
- "id": {
1322
- "type": "string"
1323
- },
1324
- "guarded": {
1325
- "type": "boolean"
1326
- }
1327
- },
1328
- "required": [
1329
- "content",
1330
- "location",
1331
- "margin",
1332
- "name",
1333
- "type"
1334
- ]
1335
- },
1336
- "RootBlock": {
1337
- "type": "object",
1338
- "properties": {
1339
- "name": {
1340
- "type": "string",
1341
- "const": "root"
1342
- },
1343
- "content": {
1344
- "$ref": "#/definitions/AstTree"
1345
- },
1346
- "diagnostics": {
1347
- "type": "array",
1348
- "items": {
1349
- "$ref": "#/definitions/ParseDiagnostic"
1404
+ "$ref": "#/definitions/BlockPod"
1405
+ },
1406
+ {
1407
+ "$ref": "#/definitions/BlockData"
1408
+ },
1409
+ {
1410
+ "$ref": "#/definitions/BlockFormula"
1411
+ },
1412
+ {
1413
+ "$ref": "#/definitions/BlockCode"
1414
+ },
1415
+ {
1416
+ "$ref": "#/definitions/BlankLine"
1417
+ },
1418
+ {
1419
+ "$ref": "#/definitions/BlockNested"
1420
+ },
1421
+ {
1422
+ "$ref": "#/definitions/BlockMarkdown"
1423
+ },
1424
+ {
1425
+ "$ref": "#/definitions/BlockOutput"
1426
+ },
1427
+ {
1428
+ "$ref": "#/definitions/BlockInput"
1429
+ },
1430
+ {
1431
+ "$ref": "#/definitions/BlockInclude"
1432
+ },
1433
+ {
1434
+ "$ref": "#/definitions/BlockPara"
1435
+ },
1436
+ {
1437
+ "$ref": "#/definitions/BlockHead"
1438
+ },
1439
+ {
1440
+ "$ref": "#/definitions/BlockComment"
1441
+ },
1442
+ {
1443
+ "$ref": "#/definitions/BlockDefn"
1444
+ },
1445
+ {
1446
+ "$ref": "#/definitions/Para"
1447
+ },
1448
+ {
1449
+ "$ref": "#/definitions/ParaTerm"
1450
+ },
1451
+ {
1452
+ "$ref": "#/definitions/ParaBuilt"
1453
+ },
1454
+ {
1455
+ "$ref": "#/definitions/Text"
1456
+ },
1457
+ {
1458
+ "$ref": "#/definitions/Code"
1459
+ },
1460
+ {
1461
+ "$ref": "#/definitions/BlockNamed"
1462
+ },
1463
+ {
1464
+ "$ref": "#/definitions/Verbatim"
1465
+ },
1466
+ {
1467
+ "$ref": "#/definitions/BlockTable"
1468
+ },
1469
+ {
1470
+ "$ref": "#/definitions/List"
1471
+ },
1472
+ {
1473
+ "$ref": "#/definitions/BlockConfig"
1474
+ },
1475
+ {
1476
+ "$ref": "#/definitions/BlockItem"
1477
+ },
1478
+ {
1479
+ "$ref": "#/definitions/Alias"
1480
+ },
1481
+ {
1482
+ "$ref": "#/definitions/BlockToc"
1483
+ },
1484
+ {
1485
+ "$ref": "#/definitions/BlockPicture"
1486
+ },
1487
+ {
1488
+ "$ref": "#/definitions/BlockImage"
1489
+ },
1490
+ {
1491
+ "$ref": "#/definitions/Image"
1492
+ },
1493
+ {
1494
+ "$ref": "#/definitions/RootBlock"
1495
+ },
1496
+ {
1497
+ "$ref": "#/definitions/Separator"
1498
+ },
1499
+ {
1500
+ "$ref": "#/definitions/BlockCaption"
1501
+ },
1502
+ {
1503
+ "$ref": "#/definitions/FormattingCodeA"
1504
+ },
1505
+ {
1506
+ "$ref": "#/definitions/FormattingCodeC"
1507
+ },
1508
+ {
1509
+ "$ref": "#/definitions/FormattingCodeB"
1510
+ },
1511
+ {
1512
+ "$ref": "#/definitions/FormattingCodeD"
1513
+ },
1514
+ {
1515
+ "$ref": "#/definitions/FormattingCodeE"
1516
+ },
1517
+ {
1518
+ "$ref": "#/definitions/FormattingCodeF"
1519
+ },
1520
+ {
1521
+ "$ref": "#/definitions/FormattingCodeI"
1522
+ },
1523
+ {
1524
+ "$ref": "#/definitions/FormattingCodeL"
1525
+ },
1526
+ {
1527
+ "$ref": "#/definitions/FormattingCodeW"
1528
+ },
1529
+ {
1530
+ "$ref": "#/definitions/FormattingCodeN"
1531
+ },
1532
+ {
1533
+ "$ref": "#/definitions/FormattingCodeX"
1534
+ },
1535
+ {
1536
+ "$ref": "#/definitions/FormattingCodeZ"
1537
+ },
1538
+ {
1539
+ "$ref": "#/definitions/FormattingCodeV"
1540
+ },
1541
+ {
1542
+ "$ref": "#/definitions/FormattingCodeS"
1543
+ },
1544
+ {
1545
+ "$ref": "#/definitions/FormattingCodeAny"
1546
+ },
1547
+ {
1548
+ "$ref": "#/definitions/Toc"
1549
+ },
1550
+ {
1551
+ "type": "string"
1552
+ }
1553
+ ]
1554
+ }
1555
+ }
1556
+ },
1557
+ "required": [
1558
+ "content",
1559
+ "type"
1560
+ ]
1561
+ },
1562
+ "Text": {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "type": {
1566
+ "type": "string",
1567
+ "const": "text"
1568
+ },
1569
+ "value": {
1570
+ "type": "string"
1571
+ },
1572
+ "guarded": {
1573
+ "type": "boolean"
1574
+ }
1575
+ },
1576
+ "required": [
1577
+ "type",
1578
+ "value"
1579
+ ]
1580
+ },
1581
+ "Code": {
1582
+ "type": "object",
1583
+ "properties": {
1584
+ "type": {
1585
+ "type": "string",
1586
+ "const": "code"
1587
+ },
1588
+ "text": {
1589
+ "type": "string"
1590
+ },
1591
+ "margin": {
1592
+ "type": "string"
1593
+ },
1594
+ "location": {
1595
+ "$ref": "#/definitions/Location"
1596
+ },
1597
+ "content": {
1598
+ "type": "array",
1599
+ "items": {
1600
+ "anyOf": [
1601
+ {
1602
+ "$ref": "#/definitions/Verbatim"
1603
+ },
1604
+ {
1605
+ "type": "string"
1606
+ }
1607
+ ]
1608
+ }
1609
+ }
1610
+ },
1611
+ "required": [
1612
+ "content",
1613
+ "location",
1614
+ "margin",
1615
+ "text",
1616
+ "type"
1617
+ ]
1618
+ },
1619
+ "BlockNamed": {
1620
+ "type": "object",
1621
+ "properties": {
1622
+ "name": {
1623
+ "type": "string"
1624
+ },
1625
+ "content": {
1626
+ "anyOf": [
1627
+ {
1628
+ "$ref": "#/definitions/RootBlock"
1629
+ },
1630
+ {
1631
+ "type": "array",
1632
+ "items": {
1633
+ "$ref": "#/definitions/PodNode"
1634
+ }
1635
+ }
1636
+ ]
1637
+ },
1638
+ "margin": {
1639
+ "type": "string"
1640
+ },
1641
+ "type": {
1642
+ "type": "string",
1643
+ "const": "block"
1644
+ },
1645
+ "location": {
1646
+ "$ref": "#/definitions/Location"
1647
+ },
1648
+ "config": {
1649
+ "type": "array",
1650
+ "items": {
1651
+ "anyOf": [
1652
+ {
1653
+ "$ref": "#/definitions/BrokenConfigItem"
1654
+ },
1655
+ {
1656
+ "$ref": "#/definitions/ConfigItem"
1657
+ }
1658
+ ]
1659
+ }
1660
+ },
1661
+ "id": {
1662
+ "type": "string"
1663
+ },
1664
+ "guarded": {
1665
+ "type": "boolean"
1666
+ }
1667
+ },
1668
+ "required": [
1669
+ "content",
1670
+ "location",
1671
+ "margin",
1672
+ "name",
1673
+ "type"
1674
+ ]
1675
+ },
1676
+ "RootBlock": {
1677
+ "type": "object",
1678
+ "properties": {
1679
+ "name": {
1680
+ "type": "string",
1681
+ "const": "root"
1682
+ },
1683
+ "content": {
1684
+ "$ref": "#/definitions/AstTree"
1685
+ },
1686
+ "diagnostics": {
1687
+ "type": "array",
1688
+ "items": {
1689
+ "$ref": "#/definitions/ParseDiagnostic"
1350
1690
  }
1351
1691
  },
1352
1692
  "margin": {
@@ -1421,55 +1761,6 @@
1421
1761
  "severity"
1422
1762
  ]
1423
1763
  },
1424
- "Image": {
1425
- "type": "object",
1426
- "properties": {
1427
- "type": {
1428
- "type": "string",
1429
- "const": "image"
1430
- },
1431
- "src": {
1432
- "type": "string"
1433
- },
1434
- "alt": {
1435
- "type": "string"
1436
- },
1437
- "link": {
1438
- "type": "string"
1439
- }
1440
- },
1441
- "required": [
1442
- "src",
1443
- "type"
1444
- ]
1445
- },
1446
- "BlockCaption": {
1447
- "type": "object",
1448
- "properties": {
1449
- "name": {
1450
- "type": "string",
1451
- "const": "caption"
1452
- },
1453
- "content": {
1454
- "type": "array",
1455
- "items": {
1456
- "$ref": "#/definitions/PodNode"
1457
- }
1458
- },
1459
- "type": {
1460
- "type": "string",
1461
- "const": "block"
1462
- },
1463
- "guarded": {
1464
- "type": "boolean"
1465
- }
1466
- },
1467
- "required": [
1468
- "content",
1469
- "name",
1470
- "type"
1471
- ]
1472
- },
1473
1764
  "BlockTable": {
1474
1765
  "type": "object",
1475
1766
  "properties": {
@@ -1663,6 +1954,9 @@
1663
1954
  {
1664
1955
  "$ref": "#/definitions/BlankLine"
1665
1956
  },
1957
+ {
1958
+ "$ref": "#/definitions/BlockDefn"
1959
+ },
1666
1960
  {
1667
1961
  "$ref": "#/definitions/List"
1668
1962
  },
@@ -1673,8 +1967,12 @@
1673
1967
  }
1674
1968
  },
1675
1969
  "list": {
1676
- "type": "string",
1677
- "const": "itemized"
1970
+ "enum": [
1971
+ "itemized",
1972
+ "task",
1973
+ "variable"
1974
+ ],
1975
+ "type": "string"
1678
1976
  }
1679
1977
  },
1680
1978
  "required": [
@@ -1914,6 +2212,55 @@
1914
2212
  "type"
1915
2213
  ]
1916
2214
  },
2215
+ "Image": {
2216
+ "type": "object",
2217
+ "properties": {
2218
+ "type": {
2219
+ "type": "string",
2220
+ "const": "image"
2221
+ },
2222
+ "src": {
2223
+ "type": "string"
2224
+ },
2225
+ "alt": {
2226
+ "type": "string"
2227
+ },
2228
+ "link": {
2229
+ "type": "string"
2230
+ }
2231
+ },
2232
+ "required": [
2233
+ "src",
2234
+ "type"
2235
+ ]
2236
+ },
2237
+ "BlockCaption": {
2238
+ "type": "object",
2239
+ "properties": {
2240
+ "name": {
2241
+ "type": "string",
2242
+ "const": "caption"
2243
+ },
2244
+ "content": {
2245
+ "type": "array",
2246
+ "items": {
2247
+ "$ref": "#/definitions/PodNode"
2248
+ }
2249
+ },
2250
+ "type": {
2251
+ "type": "string",
2252
+ "const": "block"
2253
+ },
2254
+ "guarded": {
2255
+ "type": "boolean"
2256
+ }
2257
+ },
2258
+ "required": [
2259
+ "content",
2260
+ "name",
2261
+ "type"
2262
+ ]
2263
+ },
1917
2264
  "BlockImage": {
1918
2265
  "type": "object",
1919
2266
  "properties": {
@@ -2005,97 +2352,48 @@
2005
2352
  "type": "string",
2006
2353
  "const": "A"
2007
2354
  },
2008
- "content": {
2009
- "anyOf": [
2010
- {
2011
- "$ref": "#/definitions/Text"
2012
- },
2013
- {
2014
- "type": "array",
2015
- "items": [
2016
- {
2017
- "$ref": "#/definitions/Text"
2018
- }
2019
- ],
2020
- "minItems": 1,
2021
- "maxItems": 1
2022
- },
2023
- {
2024
- "type": "string"
2025
- }
2026
- ]
2027
- }
2028
- },
2029
- "required": [
2030
- "content",
2031
- "name",
2032
- "type"
2033
- ]
2034
- },
2035
- "FormattingCodeC": {
2036
- "type": "object",
2037
- "properties": {
2038
- "type": {
2039
- "type": "string",
2040
- "const": "fcode"
2041
- },
2042
- "name": {
2043
- "type": "string",
2044
- "const": "C"
2045
- },
2046
- "content": {
2047
- "type": "array",
2048
- "items": {
2049
- "anyOf": [
2050
- {
2051
- "$ref": "#/definitions/FormattingCodeA"
2052
- },
2053
- {
2054
- "$ref": "#/definitions/FormattingCodeC"
2055
- },
2056
- {
2057
- "$ref": "#/definitions/FormattingCodeB"
2058
- },
2059
- {
2060
- "$ref": "#/definitions/FormattingCodeD"
2061
- },
2062
- {
2063
- "$ref": "#/definitions/FormattingCodeE"
2064
- },
2065
- {
2066
- "$ref": "#/definitions/FormattingCodeF"
2067
- },
2068
- {
2069
- "$ref": "#/definitions/FormattingCodeI"
2070
- },
2071
- {
2072
- "$ref": "#/definitions/FormattingCodeL"
2073
- },
2074
- {
2075
- "$ref": "#/definitions/FormattingCodeW"
2076
- },
2077
- {
2078
- "$ref": "#/definitions/FormattingCodeN"
2079
- },
2080
- {
2081
- "$ref": "#/definitions/FormattingCodeX"
2082
- },
2083
- {
2084
- "$ref": "#/definitions/FormattingCodeZ"
2085
- },
2086
- {
2087
- "$ref": "#/definitions/FormattingCodeV"
2088
- },
2089
- {
2090
- "$ref": "#/definitions/FormattingCodeS"
2091
- },
2092
- {
2093
- "$ref": "#/definitions/FormattingCodeAny"
2094
- },
2095
- {
2096
- "type": "string"
2097
- }
2098
- ]
2355
+ "content": {
2356
+ "anyOf": [
2357
+ {
2358
+ "$ref": "#/definitions/Text"
2359
+ },
2360
+ {
2361
+ "type": "array",
2362
+ "items": [
2363
+ {
2364
+ "$ref": "#/definitions/Text"
2365
+ }
2366
+ ],
2367
+ "minItems": 1,
2368
+ "maxItems": 1
2369
+ },
2370
+ {
2371
+ "type": "string"
2372
+ }
2373
+ ]
2374
+ }
2375
+ },
2376
+ "required": [
2377
+ "content",
2378
+ "name",
2379
+ "type"
2380
+ ]
2381
+ },
2382
+ "FormattingCodeC": {
2383
+ "type": "object",
2384
+ "properties": {
2385
+ "type": {
2386
+ "type": "string",
2387
+ "const": "fcode"
2388
+ },
2389
+ "name": {
2390
+ "type": "string",
2391
+ "const": "C"
2392
+ },
2393
+ "content": {
2394
+ "type": "array",
2395
+ "items": {
2396
+ "$ref": "#/definitions/PodNode"
2099
2397
  }
2100
2398
  }
2101
2399
  },
@@ -2145,7 +2443,10 @@
2145
2443
  }
2146
2444
  },
2147
2445
  "content": {
2148
- "type": "string"
2446
+ "type": "array",
2447
+ "items": {
2448
+ "$ref": "#/definitions/PodNode"
2449
+ }
2149
2450
  }
2150
2451
  },
2151
2452
  "required": [
@@ -2280,19 +2581,14 @@
2280
2581
  "type": "string"
2281
2582
  },
2282
2583
  "content": {
2283
- "anyOf": [
2284
- {
2285
- "$ref": "#/definitions/Text"
2286
- },
2287
- {
2288
- "type": "string"
2289
- }
2290
- ]
2584
+ "type": "array",
2585
+ "items": {
2586
+ "$ref": "#/definitions/PodNode"
2587
+ }
2291
2588
  }
2292
2589
  },
2293
2590
  "required": [
2294
2591
  "content",
2295
- "meta",
2296
2592
  "name",
2297
2593
  "type"
2298
2594
  ]
@@ -2372,24 +2668,10 @@
2372
2668
  }
2373
2669
  },
2374
2670
  "content": {
2375
- "anyOf": [
2376
- {
2377
- "$ref": "#/definitions/Text"
2378
- },
2379
- {
2380
- "type": "array",
2381
- "items": [
2382
- {
2383
- "$ref": "#/definitions/Text"
2384
- }
2385
- ],
2386
- "minItems": 1,
2387
- "maxItems": 1
2388
- },
2389
- {
2390
- "type": "string"
2391
- }
2392
- ]
2671
+ "type": "array",
2672
+ "items": {
2673
+ "$ref": "#/definitions/PodNode"
2674
+ }
2393
2675
  }
2394
2676
  },
2395
2677
  "required": [
@@ -2413,56 +2695,7 @@
2413
2695
  "content": {
2414
2696
  "type": "array",
2415
2697
  "items": {
2416
- "anyOf": [
2417
- {
2418
- "$ref": "#/definitions/FormattingCodeA"
2419
- },
2420
- {
2421
- "$ref": "#/definitions/FormattingCodeC"
2422
- },
2423
- {
2424
- "$ref": "#/definitions/FormattingCodeB"
2425
- },
2426
- {
2427
- "$ref": "#/definitions/FormattingCodeD"
2428
- },
2429
- {
2430
- "$ref": "#/definitions/FormattingCodeE"
2431
- },
2432
- {
2433
- "$ref": "#/definitions/FormattingCodeF"
2434
- },
2435
- {
2436
- "$ref": "#/definitions/FormattingCodeI"
2437
- },
2438
- {
2439
- "$ref": "#/definitions/FormattingCodeL"
2440
- },
2441
- {
2442
- "$ref": "#/definitions/FormattingCodeW"
2443
- },
2444
- {
2445
- "$ref": "#/definitions/FormattingCodeN"
2446
- },
2447
- {
2448
- "$ref": "#/definitions/FormattingCodeX"
2449
- },
2450
- {
2451
- "$ref": "#/definitions/FormattingCodeZ"
2452
- },
2453
- {
2454
- "$ref": "#/definitions/FormattingCodeV"
2455
- },
2456
- {
2457
- "$ref": "#/definitions/FormattingCodeS"
2458
- },
2459
- {
2460
- "$ref": "#/definitions/FormattingCodeAny"
2461
- },
2462
- {
2463
- "type": "string"
2464
- }
2465
- ]
2698
+ "$ref": "#/definitions/PodNode"
2466
2699
  }
2467
2700
  }
2468
2701
  },
@@ -2498,56 +2731,7 @@
2498
2731
  "content": {
2499
2732
  "type": "array",
2500
2733
  "items": {
2501
- "anyOf": [
2502
- {
2503
- "$ref": "#/definitions/FormattingCodeA"
2504
- },
2505
- {
2506
- "$ref": "#/definitions/FormattingCodeC"
2507
- },
2508
- {
2509
- "$ref": "#/definitions/FormattingCodeB"
2510
- },
2511
- {
2512
- "$ref": "#/definitions/FormattingCodeD"
2513
- },
2514
- {
2515
- "$ref": "#/definitions/FormattingCodeE"
2516
- },
2517
- {
2518
- "$ref": "#/definitions/FormattingCodeF"
2519
- },
2520
- {
2521
- "$ref": "#/definitions/FormattingCodeI"
2522
- },
2523
- {
2524
- "$ref": "#/definitions/FormattingCodeL"
2525
- },
2526
- {
2527
- "$ref": "#/definitions/FormattingCodeW"
2528
- },
2529
- {
2530
- "$ref": "#/definitions/FormattingCodeN"
2531
- },
2532
- {
2533
- "$ref": "#/definitions/FormattingCodeX"
2534
- },
2535
- {
2536
- "$ref": "#/definitions/FormattingCodeZ"
2537
- },
2538
- {
2539
- "$ref": "#/definitions/FormattingCodeV"
2540
- },
2541
- {
2542
- "$ref": "#/definitions/FormattingCodeS"
2543
- },
2544
- {
2545
- "$ref": "#/definitions/FormattingCodeAny"
2546
- },
2547
- {
2548
- "type": "string"
2549
- }
2550
- ]
2734
+ "$ref": "#/definitions/PodNode"
2551
2735
  }
2552
2736
  }
2553
2737
  },
@@ -2569,7 +2753,14 @@
2569
2753
  "const": "Z"
2570
2754
  },
2571
2755
  "content": {
2572
- "type": "string"
2756
+ "anyOf": [
2757
+ {
2758
+ "$ref": "#/definitions/Text"
2759
+ },
2760
+ {
2761
+ "type": "string"
2762
+ }
2763
+ ]
2573
2764
  }
2574
2765
  },
2575
2766
  "required": [
@@ -2589,7 +2780,14 @@
2589
2780
  "const": "V"
2590
2781
  },
2591
2782
  "content": {
2592
- "type": "string"
2783
+ "anyOf": [
2784
+ {
2785
+ "$ref": "#/definitions/Text"
2786
+ },
2787
+ {
2788
+ "type": "string"
2789
+ }
2790
+ ]
2593
2791
  }
2594
2792
  },
2595
2793
  "required": [
@@ -2637,56 +2835,7 @@
2637
2835
  "content": {
2638
2836
  "type": "array",
2639
2837
  "items": {
2640
- "anyOf": [
2641
- {
2642
- "$ref": "#/definitions/FormattingCodeA"
2643
- },
2644
- {
2645
- "$ref": "#/definitions/FormattingCodeC"
2646
- },
2647
- {
2648
- "$ref": "#/definitions/FormattingCodeB"
2649
- },
2650
- {
2651
- "$ref": "#/definitions/FormattingCodeD"
2652
- },
2653
- {
2654
- "$ref": "#/definitions/FormattingCodeE"
2655
- },
2656
- {
2657
- "$ref": "#/definitions/FormattingCodeF"
2658
- },
2659
- {
2660
- "$ref": "#/definitions/FormattingCodeI"
2661
- },
2662
- {
2663
- "$ref": "#/definitions/FormattingCodeL"
2664
- },
2665
- {
2666
- "$ref": "#/definitions/FormattingCodeW"
2667
- },
2668
- {
2669
- "$ref": "#/definitions/FormattingCodeN"
2670
- },
2671
- {
2672
- "$ref": "#/definitions/FormattingCodeX"
2673
- },
2674
- {
2675
- "$ref": "#/definitions/FormattingCodeZ"
2676
- },
2677
- {
2678
- "$ref": "#/definitions/FormattingCodeV"
2679
- },
2680
- {
2681
- "$ref": "#/definitions/FormattingCodeS"
2682
- },
2683
- {
2684
- "$ref": "#/definitions/FormattingCodeAny"
2685
- },
2686
- {
2687
- "type": "string"
2688
- }
2689
- ]
2838
+ "$ref": "#/definitions/PodNode"
2690
2839
  }
2691
2840
  }
2692
2841
  },
@@ -2717,6 +2866,9 @@
2717
2866
  }
2718
2867
  }
2719
2868
  },
2869
+ "location": {
2870
+ "$ref": "#/definitions/Location"
2871
+ },
2720
2872
  "content": {
2721
2873
  "$ref": "#/definitions/TocList"
2722
2874
  }