@podlite/schema 0.0.77 → 0.0.79
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.
- package/CHANGELOG.podlite +18 -0
- package/esm/codes/read.d.ts +2 -1
- package/esm/codes/read.js +84 -7
- package/esm/codes/read.js.map +1 -1
- package/esm/exportHtml.js +23 -15
- package/esm/exportHtml.js.map +1 -1
- package/esm/exportMarkdown.js +22 -14
- package/esm/exportMarkdown.js.map +1 -1
- package/esm/grammar.js +919 -659
- package/esm/grammar.js.map +1 -1
- package/esm/helpers/alias.d.ts +10 -0
- package/esm/helpers/alias.js +53 -0
- package/esm/helpers/alias.js.map +1 -0
- package/esm/index.d.ts +3 -1
- package/esm/index.js +3 -1
- package/esm/index.js.map +1 -1
- package/esm/plugin-formatting-codes.js +27 -0
- package/esm/plugin-formatting-codes.js.map +1 -1
- package/esm/test-display.d.ts +2 -0
- package/esm/test-display.js +64 -0
- package/esm/test-display.js.map +1 -1
- package/esm/types.d.ts +5 -4
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/lib/codes/read.d.ts +2 -1
- package/lib/codes/read.js +85 -8
- package/lib/exportHtml.js +23 -15
- package/lib/exportMarkdown.js +22 -14
- package/lib/grammar.js +919 -659
- package/lib/helpers/alias.d.ts +10 -0
- package/lib/helpers/alias.js +57 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +12 -4
- package/lib/plugin-formatting-codes.js +27 -0
- package/lib/test-display.d.ts +2 -0
- package/lib/test-display.js +67 -1
- package/lib/types.d.ts +5 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/schema/AstTree.json +90 -35
- package/schema/PodliteDocument.json +90 -35
|
@@ -344,6 +344,9 @@
|
|
|
344
344
|
"items": {
|
|
345
345
|
"$ref": "#/definitions/ConfigItem"
|
|
346
346
|
}
|
|
347
|
+
},
|
|
348
|
+
"caption": {
|
|
349
|
+
"$ref": "#/definitions/BlockCaption"
|
|
347
350
|
}
|
|
348
351
|
},
|
|
349
352
|
"required": [
|
|
@@ -400,6 +403,39 @@
|
|
|
400
403
|
"value"
|
|
401
404
|
]
|
|
402
405
|
},
|
|
406
|
+
"BlockCaption": {
|
|
407
|
+
"type": "object",
|
|
408
|
+
"properties": {
|
|
409
|
+
"name": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"const": "caption"
|
|
412
|
+
},
|
|
413
|
+
"content": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "#/definitions/PodNode"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"set": {
|
|
420
|
+
"type": "array",
|
|
421
|
+
"items": {
|
|
422
|
+
"$ref": "#/definitions/ConfigItem"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"type": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"const": "block"
|
|
428
|
+
},
|
|
429
|
+
"guarded": {
|
|
430
|
+
"type": "boolean"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"required": [
|
|
434
|
+
"content",
|
|
435
|
+
"name",
|
|
436
|
+
"type"
|
|
437
|
+
]
|
|
438
|
+
},
|
|
403
439
|
"BlockData": {
|
|
404
440
|
"type": "object",
|
|
405
441
|
"properties": {
|
|
@@ -447,6 +483,9 @@
|
|
|
447
483
|
"items": {
|
|
448
484
|
"$ref": "#/definitions/ConfigItem"
|
|
449
485
|
}
|
|
486
|
+
},
|
|
487
|
+
"caption": {
|
|
488
|
+
"$ref": "#/definitions/BlockCaption"
|
|
450
489
|
}
|
|
451
490
|
},
|
|
452
491
|
"required": [
|
|
@@ -480,6 +519,9 @@
|
|
|
480
519
|
"$ref": "#/definitions/ConfigItem"
|
|
481
520
|
}
|
|
482
521
|
},
|
|
522
|
+
"caption": {
|
|
523
|
+
"$ref": "#/definitions/BlockCaption"
|
|
524
|
+
},
|
|
483
525
|
"margin": {
|
|
484
526
|
"type": "string"
|
|
485
527
|
},
|
|
@@ -584,6 +626,9 @@
|
|
|
584
626
|
"items": {
|
|
585
627
|
"$ref": "#/definitions/ConfigItem"
|
|
586
628
|
}
|
|
629
|
+
},
|
|
630
|
+
"caption": {
|
|
631
|
+
"$ref": "#/definitions/BlockCaption"
|
|
587
632
|
}
|
|
588
633
|
},
|
|
589
634
|
"required": [
|
|
@@ -653,6 +698,9 @@
|
|
|
653
698
|
"items": {
|
|
654
699
|
"$ref": "#/definitions/ConfigItem"
|
|
655
700
|
}
|
|
701
|
+
},
|
|
702
|
+
"caption": {
|
|
703
|
+
"$ref": "#/definitions/BlockCaption"
|
|
656
704
|
}
|
|
657
705
|
},
|
|
658
706
|
"required": [
|
|
@@ -710,6 +758,9 @@
|
|
|
710
758
|
"items": {
|
|
711
759
|
"$ref": "#/definitions/ConfigItem"
|
|
712
760
|
}
|
|
761
|
+
},
|
|
762
|
+
"caption": {
|
|
763
|
+
"$ref": "#/definitions/BlockCaption"
|
|
713
764
|
}
|
|
714
765
|
},
|
|
715
766
|
"required": [
|
|
@@ -767,6 +818,9 @@
|
|
|
767
818
|
"items": {
|
|
768
819
|
"$ref": "#/definitions/ConfigItem"
|
|
769
820
|
}
|
|
821
|
+
},
|
|
822
|
+
"caption": {
|
|
823
|
+
"$ref": "#/definitions/BlockCaption"
|
|
770
824
|
}
|
|
771
825
|
},
|
|
772
826
|
"required": [
|
|
@@ -824,6 +878,9 @@
|
|
|
824
878
|
"items": {
|
|
825
879
|
"$ref": "#/definitions/ConfigItem"
|
|
826
880
|
}
|
|
881
|
+
},
|
|
882
|
+
"caption": {
|
|
883
|
+
"$ref": "#/definitions/BlockCaption"
|
|
827
884
|
}
|
|
828
885
|
},
|
|
829
886
|
"required": [
|
|
@@ -881,6 +938,9 @@
|
|
|
881
938
|
"items": {
|
|
882
939
|
"$ref": "#/definitions/ConfigItem"
|
|
883
940
|
}
|
|
941
|
+
},
|
|
942
|
+
"caption": {
|
|
943
|
+
"$ref": "#/definitions/BlockCaption"
|
|
884
944
|
}
|
|
885
945
|
},
|
|
886
946
|
"required": [
|
|
@@ -938,6 +998,9 @@
|
|
|
938
998
|
"items": {
|
|
939
999
|
"$ref": "#/definitions/ConfigItem"
|
|
940
1000
|
}
|
|
1001
|
+
},
|
|
1002
|
+
"caption": {
|
|
1003
|
+
"$ref": "#/definitions/BlockCaption"
|
|
941
1004
|
}
|
|
942
1005
|
},
|
|
943
1006
|
"required": [
|
|
@@ -1004,6 +1067,9 @@
|
|
|
1004
1067
|
"items": {
|
|
1005
1068
|
"$ref": "#/definitions/ConfigItem"
|
|
1006
1069
|
}
|
|
1070
|
+
},
|
|
1071
|
+
"caption": {
|
|
1072
|
+
"$ref": "#/definitions/BlockCaption"
|
|
1007
1073
|
}
|
|
1008
1074
|
},
|
|
1009
1075
|
"required": [
|
|
@@ -1062,6 +1128,9 @@
|
|
|
1062
1128
|
"items": {
|
|
1063
1129
|
"$ref": "#/definitions/ConfigItem"
|
|
1064
1130
|
}
|
|
1131
|
+
},
|
|
1132
|
+
"caption": {
|
|
1133
|
+
"$ref": "#/definitions/BlockCaption"
|
|
1065
1134
|
}
|
|
1066
1135
|
},
|
|
1067
1136
|
"required": [
|
|
@@ -1119,6 +1188,9 @@
|
|
|
1119
1188
|
"items": {
|
|
1120
1189
|
"$ref": "#/definitions/ConfigItem"
|
|
1121
1190
|
}
|
|
1191
|
+
},
|
|
1192
|
+
"caption": {
|
|
1193
|
+
"$ref": "#/definitions/BlockCaption"
|
|
1122
1194
|
}
|
|
1123
1195
|
},
|
|
1124
1196
|
"required": [
|
|
@@ -1790,6 +1862,9 @@
|
|
|
1790
1862
|
"$ref": "#/definitions/ConfigItem"
|
|
1791
1863
|
}
|
|
1792
1864
|
},
|
|
1865
|
+
"caption": {
|
|
1866
|
+
"$ref": "#/definitions/BlockCaption"
|
|
1867
|
+
},
|
|
1793
1868
|
"margin": {
|
|
1794
1869
|
"type": "string"
|
|
1795
1870
|
},
|
|
@@ -1850,6 +1925,9 @@
|
|
|
1850
1925
|
"$ref": "#/definitions/ConfigItem"
|
|
1851
1926
|
}
|
|
1852
1927
|
},
|
|
1928
|
+
"caption": {
|
|
1929
|
+
"$ref": "#/definitions/BlockCaption"
|
|
1930
|
+
},
|
|
1853
1931
|
"margin": {
|
|
1854
1932
|
"type": "string"
|
|
1855
1933
|
},
|
|
@@ -1903,6 +1981,7 @@
|
|
|
1903
1981
|
"markup-code-foreign-closer",
|
|
1904
1982
|
"markup-code-longer-run",
|
|
1905
1983
|
"markup-code-reserved",
|
|
1984
|
+
"markup-code-too-deep",
|
|
1906
1985
|
"markup-code-unclosed",
|
|
1907
1986
|
"markup-code-unreadable",
|
|
1908
1987
|
"markup-code-unsupported",
|
|
@@ -1983,6 +2062,9 @@
|
|
|
1983
2062
|
"$ref": "#/definitions/ConfigItem"
|
|
1984
2063
|
}
|
|
1985
2064
|
},
|
|
2065
|
+
"caption": {
|
|
2066
|
+
"$ref": "#/definitions/BlockCaption"
|
|
2067
|
+
},
|
|
1986
2068
|
"margin": {
|
|
1987
2069
|
"type": "string"
|
|
1988
2070
|
},
|
|
@@ -2213,6 +2295,9 @@
|
|
|
2213
2295
|
"items": {
|
|
2214
2296
|
"$ref": "#/definitions/ConfigItem"
|
|
2215
2297
|
}
|
|
2298
|
+
},
|
|
2299
|
+
"caption": {
|
|
2300
|
+
"$ref": "#/definitions/BlockCaption"
|
|
2216
2301
|
}
|
|
2217
2302
|
},
|
|
2218
2303
|
"required": [
|
|
@@ -2325,6 +2410,9 @@
|
|
|
2325
2410
|
"items": {
|
|
2326
2411
|
"$ref": "#/definitions/ConfigItem"
|
|
2327
2412
|
}
|
|
2413
|
+
},
|
|
2414
|
+
"caption": {
|
|
2415
|
+
"$ref": "#/definitions/BlockCaption"
|
|
2328
2416
|
}
|
|
2329
2417
|
},
|
|
2330
2418
|
"required": [
|
|
@@ -2343,7 +2431,7 @@
|
|
|
2343
2431
|
"const": "picture"
|
|
2344
2432
|
},
|
|
2345
2433
|
"caption": {
|
|
2346
|
-
"
|
|
2434
|
+
"$ref": "#/definitions/BlockCaption"
|
|
2347
2435
|
},
|
|
2348
2436
|
"link": {
|
|
2349
2437
|
"type": "string"
|
|
@@ -2427,39 +2515,6 @@
|
|
|
2427
2515
|
"type"
|
|
2428
2516
|
]
|
|
2429
2517
|
},
|
|
2430
|
-
"BlockCaption": {
|
|
2431
|
-
"type": "object",
|
|
2432
|
-
"properties": {
|
|
2433
|
-
"name": {
|
|
2434
|
-
"type": "string",
|
|
2435
|
-
"const": "caption"
|
|
2436
|
-
},
|
|
2437
|
-
"content": {
|
|
2438
|
-
"type": "array",
|
|
2439
|
-
"items": {
|
|
2440
|
-
"$ref": "#/definitions/PodNode"
|
|
2441
|
-
}
|
|
2442
|
-
},
|
|
2443
|
-
"set": {
|
|
2444
|
-
"type": "array",
|
|
2445
|
-
"items": {
|
|
2446
|
-
"$ref": "#/definitions/ConfigItem"
|
|
2447
|
-
}
|
|
2448
|
-
},
|
|
2449
|
-
"type": {
|
|
2450
|
-
"type": "string",
|
|
2451
|
-
"const": "block"
|
|
2452
|
-
},
|
|
2453
|
-
"guarded": {
|
|
2454
|
-
"type": "boolean"
|
|
2455
|
-
}
|
|
2456
|
-
},
|
|
2457
|
-
"required": [
|
|
2458
|
-
"content",
|
|
2459
|
-
"name",
|
|
2460
|
-
"type"
|
|
2461
|
-
]
|
|
2462
|
-
},
|
|
2463
2518
|
"BlockImage": {
|
|
2464
2519
|
"type": "object",
|
|
2465
2520
|
"properties": {
|
|
@@ -2468,7 +2523,7 @@
|
|
|
2468
2523
|
"const": "image"
|
|
2469
2524
|
},
|
|
2470
2525
|
"caption": {
|
|
2471
|
-
"
|
|
2526
|
+
"$ref": "#/definitions/BlockCaption"
|
|
2472
2527
|
},
|
|
2473
2528
|
"link": {
|
|
2474
2529
|
"type": "string"
|