markdown-codec 6.4.0 → 6.4.2
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/dist/codec.d.cts +97 -6
- package/dist/codec.d.ts +97 -6
- package/package.json +2 -2
package/dist/codec.d.cts
CHANGED
|
@@ -11,8 +11,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
11
11
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
13
13
|
left: "left";
|
|
14
|
-
right: "right";
|
|
15
14
|
center: "center";
|
|
15
|
+
right: "right";
|
|
16
16
|
justify: "justify";
|
|
17
17
|
}>>;
|
|
18
18
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -159,8 +159,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
159
159
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
161
161
|
left: "left";
|
|
162
|
-
right: "right";
|
|
163
162
|
center: "center";
|
|
163
|
+
right: "right";
|
|
164
164
|
justify: "justify";
|
|
165
165
|
}>>;
|
|
166
166
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -307,8 +307,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
307
307
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
308
308
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
309
309
|
left: "left";
|
|
310
|
-
right: "right";
|
|
311
310
|
center: "center";
|
|
311
|
+
right: "right";
|
|
312
312
|
justify: "justify";
|
|
313
313
|
}>>;
|
|
314
314
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -455,8 +455,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
455
455
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
456
456
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
457
457
|
left: "left";
|
|
458
|
-
right: "right";
|
|
459
458
|
center: "center";
|
|
459
|
+
right: "right";
|
|
460
460
|
justify: "justify";
|
|
461
461
|
}>>;
|
|
462
462
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -634,8 +634,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
634
634
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
635
635
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
636
636
|
left: "left";
|
|
637
|
-
right: "right";
|
|
638
637
|
center: "center";
|
|
638
|
+
right: "right";
|
|
639
639
|
justify: "justify";
|
|
640
640
|
}>>;
|
|
641
641
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1275,8 +1275,8 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1275
1275
|
}, z.core.$strip>>;
|
|
1276
1276
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1277
1277
|
left: "left";
|
|
1278
|
-
right: "right";
|
|
1279
1278
|
center: "center";
|
|
1279
|
+
right: "right";
|
|
1280
1280
|
justify: "justify";
|
|
1281
1281
|
}>>;
|
|
1282
1282
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1343,6 +1343,94 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1343
1343
|
widthPt: z.ZodNumber;
|
|
1344
1344
|
heightPt: z.ZodNumber;
|
|
1345
1345
|
altText: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
floatPosition: z.ZodOptional<z.ZodObject<{
|
|
1347
|
+
horizontal: z.ZodUnion<readonly [z.ZodObject<{
|
|
1348
|
+
relativeTo: z.ZodEnum<{
|
|
1349
|
+
paragraph: "paragraph";
|
|
1350
|
+
page: "page";
|
|
1351
|
+
margin: "margin";
|
|
1352
|
+
leftMargin: "leftMargin";
|
|
1353
|
+
rightMargin: "rightMargin";
|
|
1354
|
+
topMargin: "topMargin";
|
|
1355
|
+
bottomMargin: "bottomMargin";
|
|
1356
|
+
insideMargin: "insideMargin";
|
|
1357
|
+
outsideMargin: "outsideMargin";
|
|
1358
|
+
column: "column";
|
|
1359
|
+
character: "character";
|
|
1360
|
+
line: "line";
|
|
1361
|
+
frame: "frame";
|
|
1362
|
+
}>;
|
|
1363
|
+
offsetPt: z.ZodNumber;
|
|
1364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1365
|
+
relativeTo: z.ZodEnum<{
|
|
1366
|
+
paragraph: "paragraph";
|
|
1367
|
+
page: "page";
|
|
1368
|
+
margin: "margin";
|
|
1369
|
+
leftMargin: "leftMargin";
|
|
1370
|
+
rightMargin: "rightMargin";
|
|
1371
|
+
topMargin: "topMargin";
|
|
1372
|
+
bottomMargin: "bottomMargin";
|
|
1373
|
+
insideMargin: "insideMargin";
|
|
1374
|
+
outsideMargin: "outsideMargin";
|
|
1375
|
+
column: "column";
|
|
1376
|
+
character: "character";
|
|
1377
|
+
line: "line";
|
|
1378
|
+
frame: "frame";
|
|
1379
|
+
}>;
|
|
1380
|
+
align: z.ZodEnum<{
|
|
1381
|
+
left: "left";
|
|
1382
|
+
center: "center";
|
|
1383
|
+
right: "right";
|
|
1384
|
+
top: "top";
|
|
1385
|
+
bottom: "bottom";
|
|
1386
|
+
inside: "inside";
|
|
1387
|
+
outside: "outside";
|
|
1388
|
+
}>;
|
|
1389
|
+
}, z.core.$strict>]>;
|
|
1390
|
+
vertical: z.ZodUnion<readonly [z.ZodObject<{
|
|
1391
|
+
relativeTo: z.ZodEnum<{
|
|
1392
|
+
paragraph: "paragraph";
|
|
1393
|
+
page: "page";
|
|
1394
|
+
margin: "margin";
|
|
1395
|
+
leftMargin: "leftMargin";
|
|
1396
|
+
rightMargin: "rightMargin";
|
|
1397
|
+
topMargin: "topMargin";
|
|
1398
|
+
bottomMargin: "bottomMargin";
|
|
1399
|
+
insideMargin: "insideMargin";
|
|
1400
|
+
outsideMargin: "outsideMargin";
|
|
1401
|
+
column: "column";
|
|
1402
|
+
character: "character";
|
|
1403
|
+
line: "line";
|
|
1404
|
+
frame: "frame";
|
|
1405
|
+
}>;
|
|
1406
|
+
offsetPt: z.ZodNumber;
|
|
1407
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1408
|
+
relativeTo: z.ZodEnum<{
|
|
1409
|
+
paragraph: "paragraph";
|
|
1410
|
+
page: "page";
|
|
1411
|
+
margin: "margin";
|
|
1412
|
+
leftMargin: "leftMargin";
|
|
1413
|
+
rightMargin: "rightMargin";
|
|
1414
|
+
topMargin: "topMargin";
|
|
1415
|
+
bottomMargin: "bottomMargin";
|
|
1416
|
+
insideMargin: "insideMargin";
|
|
1417
|
+
outsideMargin: "outsideMargin";
|
|
1418
|
+
column: "column";
|
|
1419
|
+
character: "character";
|
|
1420
|
+
line: "line";
|
|
1421
|
+
frame: "frame";
|
|
1422
|
+
}>;
|
|
1423
|
+
align: z.ZodEnum<{
|
|
1424
|
+
left: "left";
|
|
1425
|
+
center: "center";
|
|
1426
|
+
right: "right";
|
|
1427
|
+
top: "top";
|
|
1428
|
+
bottom: "bottom";
|
|
1429
|
+
inside: "inside";
|
|
1430
|
+
outside: "outside";
|
|
1431
|
+
}>;
|
|
1432
|
+
}, z.core.$strict>]>;
|
|
1433
|
+
}, z.core.$strip>>;
|
|
1346
1434
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1347
1435
|
source: z.ZodOptional<z.ZodObject<{
|
|
1348
1436
|
format: z.ZodEnum<{
|
|
@@ -1820,6 +1908,9 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1820
1908
|
thisWeek: "thisWeek";
|
|
1821
1909
|
lastWeek: "lastWeek";
|
|
1822
1910
|
nextWeek: "nextWeek";
|
|
1911
|
+
thisYear: "thisYear";
|
|
1912
|
+
lastYear: "lastYear";
|
|
1913
|
+
nextYear: "nextYear";
|
|
1823
1914
|
}>;
|
|
1824
1915
|
style: z.ZodOptional<z.ZodObject<{
|
|
1825
1916
|
textColor: z.ZodOptional<z.ZodObject<{
|
package/dist/codec.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
11
11
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
13
13
|
left: "left";
|
|
14
|
-
right: "right";
|
|
15
14
|
center: "center";
|
|
15
|
+
right: "right";
|
|
16
16
|
justify: "justify";
|
|
17
17
|
}>>;
|
|
18
18
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -159,8 +159,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
159
159
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
161
161
|
left: "left";
|
|
162
|
-
right: "right";
|
|
163
162
|
center: "center";
|
|
163
|
+
right: "right";
|
|
164
164
|
justify: "justify";
|
|
165
165
|
}>>;
|
|
166
166
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -307,8 +307,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
307
307
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
308
308
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
309
309
|
left: "left";
|
|
310
|
-
right: "right";
|
|
311
310
|
center: "center";
|
|
311
|
+
right: "right";
|
|
312
312
|
justify: "justify";
|
|
313
313
|
}>>;
|
|
314
314
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -455,8 +455,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
455
455
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
456
456
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
457
457
|
left: "left";
|
|
458
|
-
right: "right";
|
|
459
458
|
center: "center";
|
|
459
|
+
right: "right";
|
|
460
460
|
justify: "justify";
|
|
461
461
|
}>>;
|
|
462
462
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -634,8 +634,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
634
634
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
635
635
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
636
636
|
left: "left";
|
|
637
|
-
right: "right";
|
|
638
637
|
center: "center";
|
|
638
|
+
right: "right";
|
|
639
639
|
justify: "justify";
|
|
640
640
|
}>>;
|
|
641
641
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1275,8 +1275,8 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1275
1275
|
}, z.core.$strip>>;
|
|
1276
1276
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1277
1277
|
left: "left";
|
|
1278
|
-
right: "right";
|
|
1279
1278
|
center: "center";
|
|
1279
|
+
right: "right";
|
|
1280
1280
|
justify: "justify";
|
|
1281
1281
|
}>>;
|
|
1282
1282
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1343,6 +1343,94 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1343
1343
|
widthPt: z.ZodNumber;
|
|
1344
1344
|
heightPt: z.ZodNumber;
|
|
1345
1345
|
altText: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
floatPosition: z.ZodOptional<z.ZodObject<{
|
|
1347
|
+
horizontal: z.ZodUnion<readonly [z.ZodObject<{
|
|
1348
|
+
relativeTo: z.ZodEnum<{
|
|
1349
|
+
paragraph: "paragraph";
|
|
1350
|
+
page: "page";
|
|
1351
|
+
margin: "margin";
|
|
1352
|
+
leftMargin: "leftMargin";
|
|
1353
|
+
rightMargin: "rightMargin";
|
|
1354
|
+
topMargin: "topMargin";
|
|
1355
|
+
bottomMargin: "bottomMargin";
|
|
1356
|
+
insideMargin: "insideMargin";
|
|
1357
|
+
outsideMargin: "outsideMargin";
|
|
1358
|
+
column: "column";
|
|
1359
|
+
character: "character";
|
|
1360
|
+
line: "line";
|
|
1361
|
+
frame: "frame";
|
|
1362
|
+
}>;
|
|
1363
|
+
offsetPt: z.ZodNumber;
|
|
1364
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1365
|
+
relativeTo: z.ZodEnum<{
|
|
1366
|
+
paragraph: "paragraph";
|
|
1367
|
+
page: "page";
|
|
1368
|
+
margin: "margin";
|
|
1369
|
+
leftMargin: "leftMargin";
|
|
1370
|
+
rightMargin: "rightMargin";
|
|
1371
|
+
topMargin: "topMargin";
|
|
1372
|
+
bottomMargin: "bottomMargin";
|
|
1373
|
+
insideMargin: "insideMargin";
|
|
1374
|
+
outsideMargin: "outsideMargin";
|
|
1375
|
+
column: "column";
|
|
1376
|
+
character: "character";
|
|
1377
|
+
line: "line";
|
|
1378
|
+
frame: "frame";
|
|
1379
|
+
}>;
|
|
1380
|
+
align: z.ZodEnum<{
|
|
1381
|
+
left: "left";
|
|
1382
|
+
center: "center";
|
|
1383
|
+
right: "right";
|
|
1384
|
+
top: "top";
|
|
1385
|
+
bottom: "bottom";
|
|
1386
|
+
inside: "inside";
|
|
1387
|
+
outside: "outside";
|
|
1388
|
+
}>;
|
|
1389
|
+
}, z.core.$strict>]>;
|
|
1390
|
+
vertical: z.ZodUnion<readonly [z.ZodObject<{
|
|
1391
|
+
relativeTo: z.ZodEnum<{
|
|
1392
|
+
paragraph: "paragraph";
|
|
1393
|
+
page: "page";
|
|
1394
|
+
margin: "margin";
|
|
1395
|
+
leftMargin: "leftMargin";
|
|
1396
|
+
rightMargin: "rightMargin";
|
|
1397
|
+
topMargin: "topMargin";
|
|
1398
|
+
bottomMargin: "bottomMargin";
|
|
1399
|
+
insideMargin: "insideMargin";
|
|
1400
|
+
outsideMargin: "outsideMargin";
|
|
1401
|
+
column: "column";
|
|
1402
|
+
character: "character";
|
|
1403
|
+
line: "line";
|
|
1404
|
+
frame: "frame";
|
|
1405
|
+
}>;
|
|
1406
|
+
offsetPt: z.ZodNumber;
|
|
1407
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1408
|
+
relativeTo: z.ZodEnum<{
|
|
1409
|
+
paragraph: "paragraph";
|
|
1410
|
+
page: "page";
|
|
1411
|
+
margin: "margin";
|
|
1412
|
+
leftMargin: "leftMargin";
|
|
1413
|
+
rightMargin: "rightMargin";
|
|
1414
|
+
topMargin: "topMargin";
|
|
1415
|
+
bottomMargin: "bottomMargin";
|
|
1416
|
+
insideMargin: "insideMargin";
|
|
1417
|
+
outsideMargin: "outsideMargin";
|
|
1418
|
+
column: "column";
|
|
1419
|
+
character: "character";
|
|
1420
|
+
line: "line";
|
|
1421
|
+
frame: "frame";
|
|
1422
|
+
}>;
|
|
1423
|
+
align: z.ZodEnum<{
|
|
1424
|
+
left: "left";
|
|
1425
|
+
center: "center";
|
|
1426
|
+
right: "right";
|
|
1427
|
+
top: "top";
|
|
1428
|
+
bottom: "bottom";
|
|
1429
|
+
inside: "inside";
|
|
1430
|
+
outside: "outside";
|
|
1431
|
+
}>;
|
|
1432
|
+
}, z.core.$strict>]>;
|
|
1433
|
+
}, z.core.$strip>>;
|
|
1346
1434
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1347
1435
|
source: z.ZodOptional<z.ZodObject<{
|
|
1348
1436
|
format: z.ZodEnum<{
|
|
@@ -1820,6 +1908,9 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1820
1908
|
thisWeek: "thisWeek";
|
|
1821
1909
|
lastWeek: "lastWeek";
|
|
1822
1910
|
nextWeek: "nextWeek";
|
|
1911
|
+
thisYear: "thisYear";
|
|
1912
|
+
lastYear: "lastYear";
|
|
1913
|
+
nextYear: "nextYear";
|
|
1823
1914
|
}>;
|
|
1824
1915
|
style: z.ZodOptional<z.ZodObject<{
|
|
1825
1916
|
textColor: z.ZodOptional<z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-codec",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2",
|
|
4
4
|
"description": "Hand-written CommonMark+GFM <-> DocumentTree codec, built on document-schema.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"license": "MIT",
|
|
84
84
|
"packageManager": "pnpm@11.6.0",
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"document-schema.js": "^7.
|
|
86
|
+
"document-schema.js": "^7.3.0",
|
|
87
87
|
"zod": "^4.4.3"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|