@podlite/schema 0.0.75 → 0.0.77
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 +48 -0
- package/esm/ast-helpers.d.ts +2 -1
- package/esm/ast-helpers.js +19 -2
- package/esm/ast-helpers.js.map +1 -1
- package/esm/codes/place.d.ts +13 -0
- package/esm/codes/place.js +105 -0
- package/esm/codes/place.js.map +1 -0
- package/esm/codes/read.d.ts +20 -0
- package/esm/codes/read.js +360 -0
- package/esm/codes/read.js.map +1 -0
- package/esm/codes/scan.d.ts +40 -0
- package/esm/codes/scan.js +324 -0
- package/esm/codes/scan.js.map +1 -0
- package/esm/exportHtml.js +44 -13
- package/esm/exportHtml.js.map +1 -1
- package/esm/exportMarkdown.js +32 -9
- package/esm/exportMarkdown.js.map +1 -1
- package/esm/guard.d.ts +9 -0
- package/esm/guard.js +100 -0
- package/esm/guard.js.map +1 -1
- package/esm/helpers/blockName.d.ts +1 -0
- package/esm/helpers/blockName.js +28 -2
- package/esm/helpers/blockName.js.map +1 -1
- package/esm/helpers/configPropagation.js +3 -1
- package/esm/helpers/configPropagation.js.map +1 -1
- package/esm/helpers/handlers.d.ts +3 -0
- package/esm/helpers/handlers.js +23 -0
- package/esm/helpers/handlers.js.map +1 -1
- package/esm/helpers/headingKeys.d.ts +2 -0
- package/esm/helpers/headingKeys.js +45 -0
- package/esm/helpers/headingKeys.js.map +1 -0
- package/esm/helpers/ids.js +1 -1
- package/esm/helpers/ids.js.map +1 -1
- package/esm/helpers/numberedShorthand.d.ts +1 -0
- package/esm/helpers/numberedShorthand.js +32 -0
- package/esm/helpers/numberedShorthand.js.map +1 -0
- package/esm/helpers/stripMarker.d.ts +1 -0
- package/esm/helpers/stripMarker.js +24 -0
- package/esm/helpers/stripMarker.js.map +1 -0
- package/esm/index.d.ts +5 -4
- package/esm/index.js +6 -5
- package/esm/index.js.map +1 -1
- package/esm/pluggableParser.js +35 -4
- package/esm/pluggableParser.js.map +1 -1
- package/esm/plugin-formatting-codes.js +44 -12
- package/esm/plugin-formatting-codes.js.map +1 -1
- package/esm/plugin-heading.js +3 -11
- package/esm/plugin-heading.js.map +1 -1
- package/esm/plugin-items.js +3 -32
- package/esm/plugin-items.js.map +1 -1
- package/esm/plugin-vmargin.js +16 -3
- package/esm/plugin-vmargin.js.map +1 -1
- package/esm/selectors.d.ts +3 -2
- package/esm/selectors.js +35 -4
- package/esm/selectors.js.map +1 -1
- package/esm/types.d.ts +30 -6
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/lib/ast-helpers.d.ts +2 -1
- package/lib/ast-helpers.js +19 -2
- package/lib/codes/place.d.ts +13 -0
- package/lib/codes/place.js +111 -0
- package/lib/codes/read.d.ts +20 -0
- package/lib/codes/read.js +364 -0
- package/lib/codes/scan.d.ts +40 -0
- package/lib/codes/scan.js +328 -0
- package/lib/exportHtml.js +43 -12
- package/lib/exportMarkdown.js +31 -8
- package/lib/guard.d.ts +9 -0
- package/lib/guard.js +104 -1
- package/lib/helpers/blockName.d.ts +1 -0
- package/lib/helpers/blockName.js +30 -3
- package/lib/helpers/configPropagation.js +3 -1
- package/lib/helpers/handlers.d.ts +3 -0
- package/lib/helpers/handlers.js +25 -1
- package/lib/helpers/headingKeys.d.ts +2 -0
- package/lib/helpers/headingKeys.js +50 -0
- package/lib/helpers/ids.js +1 -1
- package/lib/helpers/numberedShorthand.d.ts +1 -0
- package/lib/helpers/numberedShorthand.js +36 -0
- package/lib/helpers/stripMarker.d.ts +1 -0
- package/lib/helpers/stripMarker.js +28 -0
- package/lib/index.d.ts +5 -4
- package/lib/index.js +13 -3
- package/lib/pluggableParser.js +35 -4
- package/lib/plugin-formatting-codes.js +44 -45
- package/lib/plugin-heading.js +3 -11
- package/lib/plugin-items.js +4 -33
- package/lib/plugin-vmargin.js +16 -3
- package/lib/selectors.d.ts +3 -2
- package/lib/selectors.js +37 -5
- package/lib/types.d.ts +30 -6
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/schema/AstTree.json +173 -27
- package/schema/PodliteDocument.json +173 -27
- package/esm/grammarfc.d.ts +0 -14
- package/esm/grammarfc.js +0 -9824
- package/esm/grammarfc.js.map +0 -1
- package/lib/grammarfc.d.ts +0 -14
- package/lib/grammarfc.js +0 -9824
|
@@ -147,6 +147,15 @@
|
|
|
147
147
|
{
|
|
148
148
|
"$ref": "#/definitions/FormattingCodeS"
|
|
149
149
|
},
|
|
150
|
+
{
|
|
151
|
+
"$ref": "#/definitions/FormattingCodeM"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"$ref": "#/definitions/FormattingCodeP"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"$ref": "#/definitions/FormattingCodeReserved"
|
|
158
|
+
},
|
|
150
159
|
{
|
|
151
160
|
"$ref": "#/definitions/FormattingCodeAny"
|
|
152
161
|
},
|
|
@@ -952,6 +961,9 @@
|
|
|
952
961
|
"number"
|
|
953
962
|
]
|
|
954
963
|
},
|
|
964
|
+
"headingKey": {
|
|
965
|
+
"type": "string"
|
|
966
|
+
},
|
|
955
967
|
"type": {
|
|
956
968
|
"type": "string",
|
|
957
969
|
"const": "block"
|
|
@@ -1287,6 +1299,15 @@
|
|
|
1287
1299
|
{
|
|
1288
1300
|
"$ref": "#/definitions/FormattingCodeS"
|
|
1289
1301
|
},
|
|
1302
|
+
{
|
|
1303
|
+
"$ref": "#/definitions/FormattingCodeM"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"$ref": "#/definitions/FormattingCodeP"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"$ref": "#/definitions/FormattingCodeReserved"
|
|
1310
|
+
},
|
|
1290
1311
|
{
|
|
1291
1312
|
"$ref": "#/definitions/FormattingCodeAny"
|
|
1292
1313
|
},
|
|
@@ -1470,6 +1491,15 @@
|
|
|
1470
1491
|
{
|
|
1471
1492
|
"$ref": "#/definitions/FormattingCodeS"
|
|
1472
1493
|
},
|
|
1494
|
+
{
|
|
1495
|
+
"$ref": "#/definitions/FormattingCodeM"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"$ref": "#/definitions/FormattingCodeP"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"$ref": "#/definitions/FormattingCodeReserved"
|
|
1502
|
+
},
|
|
1473
1503
|
{
|
|
1474
1504
|
"$ref": "#/definitions/FormattingCodeAny"
|
|
1475
1505
|
},
|
|
@@ -1645,6 +1675,15 @@
|
|
|
1645
1675
|
{
|
|
1646
1676
|
"$ref": "#/definitions/FormattingCodeS"
|
|
1647
1677
|
},
|
|
1678
|
+
{
|
|
1679
|
+
"$ref": "#/definitions/FormattingCodeM"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"$ref": "#/definitions/FormattingCodeP"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"$ref": "#/definitions/FormattingCodeReserved"
|
|
1686
|
+
},
|
|
1648
1687
|
{
|
|
1649
1688
|
"$ref": "#/definitions/FormattingCodeAny"
|
|
1650
1689
|
},
|
|
@@ -1861,6 +1900,12 @@
|
|
|
1861
1900
|
"code": {
|
|
1862
1901
|
"enum": [
|
|
1863
1902
|
"directive-unreadable",
|
|
1903
|
+
"markup-code-foreign-closer",
|
|
1904
|
+
"markup-code-longer-run",
|
|
1905
|
+
"markup-code-reserved",
|
|
1906
|
+
"markup-code-unclosed",
|
|
1907
|
+
"markup-code-unreadable",
|
|
1908
|
+
"markup-code-unsupported",
|
|
1864
1909
|
"table-cell-outside-row",
|
|
1865
1910
|
"table-mixed-separators",
|
|
1866
1911
|
"table-row-cells",
|
|
@@ -2776,6 +2821,9 @@
|
|
|
2776
2821
|
"$ref": "#/definitions/ConfigItem"
|
|
2777
2822
|
}
|
|
2778
2823
|
},
|
|
2824
|
+
"headingRef": {
|
|
2825
|
+
"type": "string"
|
|
2826
|
+
},
|
|
2779
2827
|
"content": {
|
|
2780
2828
|
"anyOf": [
|
|
2781
2829
|
{
|
|
@@ -2783,13 +2831,9 @@
|
|
|
2783
2831
|
},
|
|
2784
2832
|
{
|
|
2785
2833
|
"type": "array",
|
|
2786
|
-
"items":
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
}
|
|
2790
|
-
],
|
|
2791
|
-
"minItems": 1,
|
|
2792
|
-
"maxItems": 1
|
|
2834
|
+
"items": {
|
|
2835
|
+
"$ref": "#/definitions/Text"
|
|
2836
|
+
}
|
|
2793
2837
|
},
|
|
2794
2838
|
{
|
|
2795
2839
|
"type": "string"
|
|
@@ -2913,14 +2957,10 @@
|
|
|
2913
2957
|
"const": "Z"
|
|
2914
2958
|
},
|
|
2915
2959
|
"content": {
|
|
2916
|
-
"
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
{
|
|
2921
|
-
"type": "string"
|
|
2922
|
-
}
|
|
2923
|
-
]
|
|
2960
|
+
"type": "array",
|
|
2961
|
+
"items": {
|
|
2962
|
+
"$ref": "#/definitions/PodNode"
|
|
2963
|
+
}
|
|
2924
2964
|
}
|
|
2925
2965
|
},
|
|
2926
2966
|
"required": [
|
|
@@ -2940,14 +2980,10 @@
|
|
|
2940
2980
|
"const": "V"
|
|
2941
2981
|
},
|
|
2942
2982
|
"content": {
|
|
2943
|
-
"
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
{
|
|
2948
|
-
"type": "string"
|
|
2949
|
-
}
|
|
2950
|
-
]
|
|
2983
|
+
"type": "array",
|
|
2984
|
+
"items": {
|
|
2985
|
+
"$ref": "#/definitions/PodNode"
|
|
2986
|
+
}
|
|
2951
2987
|
}
|
|
2952
2988
|
},
|
|
2953
2989
|
"required": [
|
|
@@ -2967,19 +3003,129 @@
|
|
|
2967
3003
|
"const": "S"
|
|
2968
3004
|
},
|
|
2969
3005
|
"content": {
|
|
2970
|
-
"
|
|
3006
|
+
"type": "array",
|
|
3007
|
+
"items": {
|
|
3008
|
+
"$ref": "#/definitions/PodNode"
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
},
|
|
3012
|
+
"required": [
|
|
3013
|
+
"name",
|
|
3014
|
+
"type"
|
|
3015
|
+
]
|
|
3016
|
+
},
|
|
3017
|
+
"FormattingCodeM": {
|
|
3018
|
+
"type": "object",
|
|
3019
|
+
"properties": {
|
|
3020
|
+
"type": {
|
|
3021
|
+
"type": "string",
|
|
3022
|
+
"const": "fcode"
|
|
3023
|
+
},
|
|
3024
|
+
"name": {
|
|
3025
|
+
"type": "string",
|
|
3026
|
+
"const": "M"
|
|
3027
|
+
},
|
|
3028
|
+
"module": {
|
|
3029
|
+
"type": [
|
|
3030
|
+
"null",
|
|
3031
|
+
"string"
|
|
3032
|
+
]
|
|
3033
|
+
},
|
|
3034
|
+
"config": {},
|
|
3035
|
+
"content": {
|
|
3036
|
+
"type": "array",
|
|
3037
|
+
"items": {
|
|
3038
|
+
"$ref": "#/definitions/PodNode"
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
},
|
|
3042
|
+
"required": [
|
|
3043
|
+
"config",
|
|
3044
|
+
"content",
|
|
3045
|
+
"module",
|
|
3046
|
+
"name",
|
|
3047
|
+
"type"
|
|
3048
|
+
]
|
|
3049
|
+
},
|
|
3050
|
+
"FormattingCodeP": {
|
|
3051
|
+
"type": "object",
|
|
3052
|
+
"properties": {
|
|
3053
|
+
"type": {
|
|
3054
|
+
"type": "string",
|
|
3055
|
+
"const": "fcode"
|
|
3056
|
+
},
|
|
3057
|
+
"name": {
|
|
3058
|
+
"type": "string",
|
|
3059
|
+
"const": "P"
|
|
3060
|
+
},
|
|
3061
|
+
"content": {
|
|
3062
|
+
"type": "array",
|
|
3063
|
+
"items": {
|
|
3064
|
+
"type": "object",
|
|
3065
|
+
"properties": {
|
|
3066
|
+
"type": {
|
|
3067
|
+
"type": "string",
|
|
3068
|
+
"const": "image"
|
|
3069
|
+
},
|
|
3070
|
+
"src": {
|
|
3071
|
+
"type": "string"
|
|
3072
|
+
},
|
|
3073
|
+
"alt": {
|
|
3074
|
+
"type": "string"
|
|
3075
|
+
}
|
|
3076
|
+
},
|
|
3077
|
+
"required": [
|
|
3078
|
+
"src",
|
|
3079
|
+
"type"
|
|
3080
|
+
]
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
"required": [
|
|
3085
|
+
"content",
|
|
3086
|
+
"name",
|
|
3087
|
+
"type"
|
|
3088
|
+
]
|
|
3089
|
+
},
|
|
3090
|
+
"FormattingCodeReserved": {
|
|
3091
|
+
"type": "object",
|
|
3092
|
+
"properties": {
|
|
3093
|
+
"type": {
|
|
3094
|
+
"type": "string",
|
|
3095
|
+
"const": "fcode"
|
|
3096
|
+
},
|
|
3097
|
+
"name": {
|
|
3098
|
+
"enum": [
|
|
3099
|
+
"Q",
|
|
3100
|
+
"Y"
|
|
3101
|
+
],
|
|
3102
|
+
"type": "string"
|
|
3103
|
+
},
|
|
3104
|
+
"written": {
|
|
3105
|
+
"type": "array",
|
|
3106
|
+
"items": [
|
|
2971
3107
|
{
|
|
2972
|
-
"
|
|
3108
|
+
"type": "string"
|
|
2973
3109
|
},
|
|
2974
3110
|
{
|
|
2975
3111
|
"type": "string"
|
|
2976
3112
|
}
|
|
2977
|
-
]
|
|
3113
|
+
],
|
|
3114
|
+
"minItems": 2,
|
|
3115
|
+
"maxItems": 2
|
|
3116
|
+
},
|
|
3117
|
+
"content": {
|
|
3118
|
+
"type": "array",
|
|
3119
|
+
"items": {
|
|
3120
|
+
"$ref": "#/definitions/PodNode"
|
|
3121
|
+
}
|
|
2978
3122
|
}
|
|
2979
3123
|
},
|
|
2980
3124
|
"required": [
|
|
3125
|
+
"content",
|
|
2981
3126
|
"name",
|
|
2982
|
-
"type"
|
|
3127
|
+
"type",
|
|
3128
|
+
"written"
|
|
2983
3129
|
]
|
|
2984
3130
|
},
|
|
2985
3131
|
"FormattingCodeAny": {
|
package/esm/grammarfc.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare function peg$SyntaxError(message: any, expected: any, found: any, location: any): void;
|
|
2
|
-
declare class peg$SyntaxError {
|
|
3
|
-
constructor(message: any, expected: any, found: any, location: any);
|
|
4
|
-
message: any;
|
|
5
|
-
expected: any;
|
|
6
|
-
found: any;
|
|
7
|
-
location: any;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
declare namespace peg$SyntaxError {
|
|
11
|
-
function buildMessage(expected: any, found: any): string;
|
|
12
|
-
}
|
|
13
|
-
declare function peg$parse(input: any, options: any): any[];
|
|
14
|
-
export { peg$SyntaxError as SyntaxError, peg$parse as parse };
|