markdown-codec 6.5.2 → 6.6.1

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,6 +1,6 @@
1
1
  import { s as MarkdownDocumentNode } from "../ast-CNfTgS0N.cjs";
2
2
  import { r as FootnoteLabelSet } from "../footnote-CKk4JbLk.cjs";
3
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.cjs";
3
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.cjs";
4
4
  import { LinkReferenceMap } from "../inline/link.cjs";
5
5
  import { t as InlineParseOptions } from "../inline-CnO86zMw.cjs";
6
6
  //#region src/block/block.d.ts
@@ -1,6 +1,6 @@
1
1
  import { s as MarkdownDocumentNode } from "../ast-CNfTgS0N.js";
2
2
  import { r as FootnoteLabelSet } from "../footnote-CKk4JbLk.js";
3
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.js";
3
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.js";
4
4
  import { LinkReferenceMap } from "../inline/link.js";
5
5
  import { t as InlineParseOptions } from "../inline-DItZ-VVw.js";
6
6
  //#region src/block/block.d.ts
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.cjs";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.cjs";
2
2
  import { LinkReferenceDefinition } from "../inline/link.cjs";
3
3
  //#region src/block/definitions.d.ts
4
4
  declare function extractDefinitions(content: string, references: Map<string, LinkReferenceDefinition>, sink?: MarkdownDiagnosticSink, startLine?: number): string;
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.js";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.js";
2
2
  import { LinkReferenceDefinition } from "../inline/link.js";
3
3
  //#region src/block/definitions.d.ts
4
4
  declare function extractDefinitions(content: string, references: Map<string, LinkReferenceDefinition>, sink?: MarkdownDiagnosticSink, startLine?: number): string;
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<{
@@ -160,8 +160,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
160
160
  paragraph: z.ZodOptional<z.ZodObject<{
161
161
  alignment: z.ZodOptional<z.ZodEnum<{
162
162
  left: "left";
163
- right: "right";
164
163
  center: "center";
164
+ right: "right";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -309,8 +309,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
309
309
  paragraph: z.ZodOptional<z.ZodObject<{
310
310
  alignment: z.ZodOptional<z.ZodEnum<{
311
311
  left: "left";
312
- right: "right";
313
312
  center: "center";
313
+ right: "right";
314
314
  justify: "justify";
315
315
  }>>;
316
316
  list: z.ZodOptional<z.ZodObject<{
@@ -458,8 +458,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
458
458
  paragraph: z.ZodOptional<z.ZodObject<{
459
459
  alignment: z.ZodOptional<z.ZodEnum<{
460
460
  left: "left";
461
- right: "right";
462
461
  center: "center";
462
+ right: "right";
463
463
  justify: "justify";
464
464
  }>>;
465
465
  list: z.ZodOptional<z.ZodObject<{
@@ -639,8 +639,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
639
639
  paragraph: z.ZodOptional<z.ZodObject<{
640
640
  alignment: z.ZodOptional<z.ZodEnum<{
641
641
  left: "left";
642
- right: "right";
643
642
  center: "center";
643
+ right: "right";
644
644
  justify: "justify";
645
645
  }>>;
646
646
  list: z.ZodOptional<z.ZodObject<{
@@ -798,6 +798,16 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
798
798
  evenPage: "evenPage";
799
799
  oddPage: "oddPage";
800
800
  }>>;
801
+ headers: z.ZodOptional<z.ZodObject<{
802
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
803
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
804
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
805
+ }, z.core.$strip>>;
806
+ footers: z.ZodOptional<z.ZodObject<{
807
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
808
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
809
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
810
+ }, z.core.$strip>>;
801
811
  source: z.ZodOptional<z.ZodObject<{
802
812
  format: z.ZodEnum<{
803
813
  docx: "docx";
@@ -1285,8 +1295,8 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1285
1295
  }, z.core.$strip>>;
1286
1296
  alignment: z.ZodOptional<z.ZodEnum<{
1287
1297
  left: "left";
1288
- right: "right";
1289
1298
  center: "center";
1299
+ right: "right";
1290
1300
  justify: "justify";
1291
1301
  }>>;
1292
1302
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1390,10 +1400,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1390
1400
  }>;
1391
1401
  align: z.ZodEnum<{
1392
1402
  left: "left";
1403
+ center: "center";
1393
1404
  right: "right";
1394
1405
  top: "top";
1395
1406
  bottom: "bottom";
1396
- center: "center";
1397
1407
  inside: "inside";
1398
1408
  outside: "outside";
1399
1409
  }>;
@@ -1433,10 +1443,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1433
1443
  }>;
1434
1444
  align: z.ZodEnum<{
1435
1445
  left: "left";
1446
+ center: "center";
1436
1447
  right: "right";
1437
1448
  top: "top";
1438
1449
  bottom: "bottom";
1439
- center: "center";
1440
1450
  inside: "inside";
1441
1451
  outside: "outside";
1442
1452
  }>;
@@ -1525,10 +1535,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1525
1535
  endColumn: z.ZodNumber;
1526
1536
  }, z.core.$strip>>;
1527
1537
  type: z.ZodEnum<{
1528
- date: "date";
1529
- custom: "custom";
1530
1538
  decimal: "decimal";
1531
1539
  list: "list";
1540
+ date: "date";
1541
+ custom: "custom";
1532
1542
  time: "time";
1533
1543
  whole: "whole";
1534
1544
  textLength: "textLength";
@@ -2000,11 +2010,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
2000
2010
  stops: z.ZodArray<z.ZodObject<{
2001
2011
  value: z.ZodObject<{
2002
2012
  type: z.ZodEnum<{
2003
- formula: "formula";
2004
- percent: "percent";
2005
2013
  num: "num";
2006
- max: "max";
2007
2014
  min: "min";
2015
+ max: "max";
2016
+ formula: "formula";
2017
+ percent: "percent";
2008
2018
  percentile: "percentile";
2009
2019
  }>;
2010
2020
  value: z.ZodOptional<z.ZodString>;
@@ -2047,22 +2057,22 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
2047
2057
  }, z.core.$strip>, z.ZodObject<{
2048
2058
  min: z.ZodObject<{
2049
2059
  type: z.ZodEnum<{
2050
- formula: "formula";
2051
- percent: "percent";
2052
2060
  num: "num";
2053
- max: "max";
2054
2061
  min: "min";
2062
+ max: "max";
2063
+ formula: "formula";
2064
+ percent: "percent";
2055
2065
  percentile: "percentile";
2056
2066
  }>;
2057
2067
  value: z.ZodOptional<z.ZodString>;
2058
2068
  }, z.core.$strip>;
2059
2069
  max: z.ZodObject<{
2060
2070
  type: z.ZodEnum<{
2061
- formula: "formula";
2062
- percent: "percent";
2063
2071
  num: "num";
2064
- max: "max";
2065
2072
  min: "min";
2073
+ max: "max";
2074
+ formula: "formula";
2075
+ percent: "percent";
2066
2076
  percentile: "percentile";
2067
2077
  }>;
2068
2078
  value: z.ZodOptional<z.ZodString>;
@@ -2106,11 +2116,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
2106
2116
  iconSetType: z.ZodString;
2107
2117
  thresholds: z.ZodArray<z.ZodObject<{
2108
2118
  type: z.ZodEnum<{
2109
- formula: "formula";
2110
- percent: "percent";
2111
2119
  num: "num";
2112
- max: "max";
2113
2120
  min: "min";
2121
+ max: "max";
2122
+ formula: "formula";
2123
+ percent: "percent";
2114
2124
  percentile: "percentile";
2115
2125
  }>;
2116
2126
  value: z.ZodOptional<z.ZodString>;
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<{
@@ -160,8 +160,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
160
160
  paragraph: z.ZodOptional<z.ZodObject<{
161
161
  alignment: z.ZodOptional<z.ZodEnum<{
162
162
  left: "left";
163
- right: "right";
164
163
  center: "center";
164
+ right: "right";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -309,8 +309,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
309
309
  paragraph: z.ZodOptional<z.ZodObject<{
310
310
  alignment: z.ZodOptional<z.ZodEnum<{
311
311
  left: "left";
312
- right: "right";
313
312
  center: "center";
313
+ right: "right";
314
314
  justify: "justify";
315
315
  }>>;
316
316
  list: z.ZodOptional<z.ZodObject<{
@@ -458,8 +458,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
458
458
  paragraph: z.ZodOptional<z.ZodObject<{
459
459
  alignment: z.ZodOptional<z.ZodEnum<{
460
460
  left: "left";
461
- right: "right";
462
461
  center: "center";
462
+ right: "right";
463
463
  justify: "justify";
464
464
  }>>;
465
465
  list: z.ZodOptional<z.ZodObject<{
@@ -639,8 +639,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
639
639
  paragraph: z.ZodOptional<z.ZodObject<{
640
640
  alignment: z.ZodOptional<z.ZodEnum<{
641
641
  left: "left";
642
- right: "right";
643
642
  center: "center";
643
+ right: "right";
644
644
  justify: "justify";
645
645
  }>>;
646
646
  list: z.ZodOptional<z.ZodObject<{
@@ -798,6 +798,16 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
798
798
  evenPage: "evenPage";
799
799
  oddPage: "oddPage";
800
800
  }>>;
801
+ headers: z.ZodOptional<z.ZodObject<{
802
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
803
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
804
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
805
+ }, z.core.$strip>>;
806
+ footers: z.ZodOptional<z.ZodObject<{
807
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
808
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
809
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
810
+ }, z.core.$strip>>;
801
811
  source: z.ZodOptional<z.ZodObject<{
802
812
  format: z.ZodEnum<{
803
813
  docx: "docx";
@@ -1285,8 +1295,8 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1285
1295
  }, z.core.$strip>>;
1286
1296
  alignment: z.ZodOptional<z.ZodEnum<{
1287
1297
  left: "left";
1288
- right: "right";
1289
1298
  center: "center";
1299
+ right: "right";
1290
1300
  justify: "justify";
1291
1301
  }>>;
1292
1302
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1390,10 +1400,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1390
1400
  }>;
1391
1401
  align: z.ZodEnum<{
1392
1402
  left: "left";
1403
+ center: "center";
1393
1404
  right: "right";
1394
1405
  top: "top";
1395
1406
  bottom: "bottom";
1396
- center: "center";
1397
1407
  inside: "inside";
1398
1408
  outside: "outside";
1399
1409
  }>;
@@ -1433,10 +1443,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1433
1443
  }>;
1434
1444
  align: z.ZodEnum<{
1435
1445
  left: "left";
1446
+ center: "center";
1436
1447
  right: "right";
1437
1448
  top: "top";
1438
1449
  bottom: "bottom";
1439
- center: "center";
1440
1450
  inside: "inside";
1441
1451
  outside: "outside";
1442
1452
  }>;
@@ -1525,10 +1535,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
1525
1535
  endColumn: z.ZodNumber;
1526
1536
  }, z.core.$strip>>;
1527
1537
  type: z.ZodEnum<{
1528
- date: "date";
1529
- custom: "custom";
1530
1538
  decimal: "decimal";
1531
1539
  list: "list";
1540
+ date: "date";
1541
+ custom: "custom";
1532
1542
  time: "time";
1533
1543
  whole: "whole";
1534
1544
  textLength: "textLength";
@@ -2000,11 +2010,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
2000
2010
  stops: z.ZodArray<z.ZodObject<{
2001
2011
  value: z.ZodObject<{
2002
2012
  type: z.ZodEnum<{
2003
- formula: "formula";
2004
- percent: "percent";
2005
2013
  num: "num";
2006
- max: "max";
2007
2014
  min: "min";
2015
+ max: "max";
2016
+ formula: "formula";
2017
+ percent: "percent";
2008
2018
  percentile: "percentile";
2009
2019
  }>;
2010
2020
  value: z.ZodOptional<z.ZodString>;
@@ -2047,22 +2057,22 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
2047
2057
  }, z.core.$strip>, z.ZodObject<{
2048
2058
  min: z.ZodObject<{
2049
2059
  type: z.ZodEnum<{
2050
- formula: "formula";
2051
- percent: "percent";
2052
2060
  num: "num";
2053
- max: "max";
2054
2061
  min: "min";
2062
+ max: "max";
2063
+ formula: "formula";
2064
+ percent: "percent";
2055
2065
  percentile: "percentile";
2056
2066
  }>;
2057
2067
  value: z.ZodOptional<z.ZodString>;
2058
2068
  }, z.core.$strip>;
2059
2069
  max: z.ZodObject<{
2060
2070
  type: z.ZodEnum<{
2061
- formula: "formula";
2062
- percent: "percent";
2063
2071
  num: "num";
2064
- max: "max";
2065
2072
  min: "min";
2073
+ max: "max";
2074
+ formula: "formula";
2075
+ percent: "percent";
2066
2076
  percentile: "percentile";
2067
2077
  }>;
2068
2078
  value: z.ZodOptional<z.ZodString>;
@@ -2106,11 +2116,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
2106
2116
  iconSetType: z.ZodString;
2107
2117
  thresholds: z.ZodArray<z.ZodObject<{
2108
2118
  type: z.ZodEnum<{
2109
- formula: "formula";
2110
- percent: "percent";
2111
2119
  num: "num";
2112
- max: "max";
2113
2120
  min: "min";
2121
+ max: "max";
2122
+ formula: "formula";
2123
+ percent: "percent";
2114
2124
  percentile: "percentile";
2115
2125
  }>;
2116
2126
  value: z.ZodOptional<z.ZodString>;
@@ -12,14 +12,12 @@ const MarkdownDiagnosticCodes = {
12
12
  INVENTED_PAGE_GEOMETRY: "md/invented-page-geometry",
13
13
  NESTED_EMPHASIS_FLATTENED: "md/nested-emphasis-flattened",
14
14
  LINK_TITLE_DROPPED: "md/link-title-dropped",
15
- BLOCKQUOTE_CONTAINER_SKIPPED: "md/blockquote-container-skipped",
16
15
  LIST_ITEM_BLOCK_UNLISTED: "md/list-item-block-unlisted",
17
16
  IMAGE_UNRESOLVED: "md/image-unresolved",
18
17
  RAW_HTML_PRESERVED_AS_TEXT: "md/raw-html-preserved-as-text",
19
18
  RAW_HTML_DROPPED: "md/raw-html-dropped",
20
19
  MATH_INLINE_PRESERVED_AS_TEXT: "md/math-inline-preserved-as-text",
21
20
  FRONT_MATTER_KEY_UNMAPPED: "md/front-matter-key-unmapped",
22
- FOOTNOTE_BODY_HEADING_FLATTENED: "md/footnote-body-heading-flattened",
23
21
  CONSTRUCT_UNREPRESENTED: "md/construct-unrepresented",
24
22
  PACKAGE_TABLE_DROPPED: "md/package-table-dropped",
25
23
  HEADING_LEVEL_CLAMPED: "md/heading-level-clamped",
@@ -1,2 +1,2 @@
1
- import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-DLum7kY6.cjs";
1
+ import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-CjfBoW4K.cjs";
2
2
  export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
@@ -1,2 +1,2 @@
1
- import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-DLum7kY6.js";
1
+ import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-CjfBoW4K.js";
2
2
  export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
@@ -11,14 +11,12 @@ const MarkdownDiagnosticCodes = {
11
11
  INVENTED_PAGE_GEOMETRY: "md/invented-page-geometry",
12
12
  NESTED_EMPHASIS_FLATTENED: "md/nested-emphasis-flattened",
13
13
  LINK_TITLE_DROPPED: "md/link-title-dropped",
14
- BLOCKQUOTE_CONTAINER_SKIPPED: "md/blockquote-container-skipped",
15
14
  LIST_ITEM_BLOCK_UNLISTED: "md/list-item-block-unlisted",
16
15
  IMAGE_UNRESOLVED: "md/image-unresolved",
17
16
  RAW_HTML_PRESERVED_AS_TEXT: "md/raw-html-preserved-as-text",
18
17
  RAW_HTML_DROPPED: "md/raw-html-dropped",
19
18
  MATH_INLINE_PRESERVED_AS_TEXT: "md/math-inline-preserved-as-text",
20
19
  FRONT_MATTER_KEY_UNMAPPED: "md/front-matter-key-unmapped",
21
- FOOTNOTE_BODY_HEADING_FLATTENED: "md/footnote-body-heading-flattened",
22
20
  CONSTRUCT_UNREPRESENTED: "md/construct-unrepresented",
23
21
  PACKAGE_TABLE_DROPPED: "md/package-table-dropped",
24
22
  HEADING_LEVEL_CLAMPED: "md/heading-level-clamped",
@@ -19,14 +19,12 @@ declare const MarkdownDiagnosticCodes: {
19
19
  readonly INVENTED_PAGE_GEOMETRY: "md/invented-page-geometry";
20
20
  readonly NESTED_EMPHASIS_FLATTENED: "md/nested-emphasis-flattened";
21
21
  readonly LINK_TITLE_DROPPED: "md/link-title-dropped";
22
- readonly BLOCKQUOTE_CONTAINER_SKIPPED: "md/blockquote-container-skipped";
23
22
  readonly LIST_ITEM_BLOCK_UNLISTED: "md/list-item-block-unlisted";
24
23
  readonly IMAGE_UNRESOLVED: "md/image-unresolved";
25
24
  readonly RAW_HTML_PRESERVED_AS_TEXT: "md/raw-html-preserved-as-text";
26
25
  readonly RAW_HTML_DROPPED: "md/raw-html-dropped";
27
26
  readonly MATH_INLINE_PRESERVED_AS_TEXT: "md/math-inline-preserved-as-text";
28
27
  readonly FRONT_MATTER_KEY_UNMAPPED: "md/front-matter-key-unmapped";
29
- readonly FOOTNOTE_BODY_HEADING_FLATTENED: "md/footnote-body-heading-flattened";
30
28
  readonly CONSTRUCT_UNREPRESENTED: "md/construct-unrepresented";
31
29
  readonly PACKAGE_TABLE_DROPPED: "md/package-table-dropped";
32
30
  readonly HEADING_LEVEL_CLAMPED: "md/heading-level-clamped";
@@ -19,14 +19,12 @@ declare const MarkdownDiagnosticCodes: {
19
19
  readonly INVENTED_PAGE_GEOMETRY: "md/invented-page-geometry";
20
20
  readonly NESTED_EMPHASIS_FLATTENED: "md/nested-emphasis-flattened";
21
21
  readonly LINK_TITLE_DROPPED: "md/link-title-dropped";
22
- readonly BLOCKQUOTE_CONTAINER_SKIPPED: "md/blockquote-container-skipped";
23
22
  readonly LIST_ITEM_BLOCK_UNLISTED: "md/list-item-block-unlisted";
24
23
  readonly IMAGE_UNRESOLVED: "md/image-unresolved";
25
24
  readonly RAW_HTML_PRESERVED_AS_TEXT: "md/raw-html-preserved-as-text";
26
25
  readonly RAW_HTML_DROPPED: "md/raw-html-dropped";
27
26
  readonly MATH_INLINE_PRESERVED_AS_TEXT: "md/math-inline-preserved-as-text";
28
27
  readonly FRONT_MATTER_KEY_UNMAPPED: "md/front-matter-key-unmapped";
29
- readonly FOOTNOTE_BODY_HEADING_FLATTENED: "md/footnote-body-heading-flattened";
30
28
  readonly CONSTRUCT_UNREPRESENTED: "md/construct-unrepresented";
31
29
  readonly PACKAGE_TABLE_DROPPED: "md/package-table-dropped";
32
30
  readonly HEADING_LEVEL_CLAMPED: "md/heading-level-clamped";
@@ -1,2 +1,2 @@
1
- import { a as escapeMarkdownText, i as escapeLinkDestination, n as emitRuns, o as renderLinkTitle, r as emitRunsSingleLine, t as InlineEmitContext } from "../inline-514HW3Pi.cjs";
1
+ import { a as escapeMarkdownText, i as escapeLinkDestination, n as emitRuns, o as renderLinkTitle, r as emitRunsSingleLine, t as InlineEmitContext } from "../inline-DCIKQ83j.cjs";
2
2
  export { InlineEmitContext, emitRuns, emitRunsSingleLine, escapeLinkDestination, escapeMarkdownText, renderLinkTitle };
@@ -1,2 +1,2 @@
1
- import { a as escapeMarkdownText, i as escapeLinkDestination, n as emitRuns, o as renderLinkTitle, r as emitRunsSingleLine, t as InlineEmitContext } from "../inline-2-lUb0vo.js";
1
+ import { a as escapeMarkdownText, i as escapeLinkDestination, n as emitRuns, o as renderLinkTitle, r as emitRunsSingleLine, t as InlineEmitContext } from "../inline-INoDAG37.js";
2
2
  export { InlineEmitContext, emitRuns, emitRunsSingleLine, escapeLinkDestination, escapeMarkdownText, renderLinkTitle };
@@ -1,5 +1,5 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.cjs";
2
- import { t as InlineEmitContext } from "../inline-514HW3Pi.cjs";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.cjs";
2
+ import { t as InlineEmitContext } from "../inline-DCIKQ83j.cjs";
3
3
  import { ContentTable } from "document-schema.js";
4
4
  //#region src/emit/table.d.ts
5
5
  interface TableEmitContext extends InlineEmitContext {
@@ -1,5 +1,5 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.js";
2
- import { t as InlineEmitContext } from "../inline-2-lUb0vo.js";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.js";
2
+ import { t as InlineEmitContext } from "../inline-INoDAG37.js";
3
3
  import { ContentTable } from "document-schema.js";
4
4
  //#region src/emit/table.d.ts
5
5
  interface TableEmitContext extends InlineEmitContext {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-DLum7kY6.cjs";
1
+ import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-CjfBoW4K.cjs";
2
2
  import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.cjs";
3
3
  import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-B5L0HpAJ.cjs";
4
4
  import { MarkdownBulletListMarker, MarkdownCodeFenceChar, MarkdownEmphasisMarker, MarkdownHeadingStyle, MarkdownLineEnding, MarkdownOrderedListDelimiter, MarkdownThematicBreakChar, ReadMarkdownOptions, WriteMarkdownOptions, WriteMarkdownStyleOptions } from "./options/options.cjs";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-DLum7kY6.js";
1
+ import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-CjfBoW4K.js";
2
2
  import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.js";
3
3
  import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-C390OIB3.js";
4
4
  import { MarkdownBulletListMarker, MarkdownCodeFenceChar, MarkdownEmphasisMarker, MarkdownHeadingStyle, MarkdownLineEnding, MarkdownOrderedListDelimiter, MarkdownThematicBreakChar, ReadMarkdownOptions, WriteMarkdownOptions, WriteMarkdownStyleOptions } from "./options/options.js";
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "./diagnostics-DLum7kY6.cjs";
1
+ import { i as MarkdownDiagnosticSink } from "./diagnostics-CjfBoW4K.cjs";
2
2
  import { ContentRun, RunConstructExtent } from "document-schema.js";
3
3
  //#region src/emit/inline.d.ts
4
4
  interface InlineEmitContext {
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "./diagnostics-DLum7kY6.js";
1
+ import { i as MarkdownDiagnosticSink } from "./diagnostics-CjfBoW4K.js";
2
2
  import { ContentRun, RunConstructExtent } from "document-schema.js";
3
3
  //#region src/emit/inline.d.ts
4
4
  interface InlineEmitContext {
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.cjs";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.cjs";
2
2
  import { LayoutMetadata } from "document-schema.js";
3
3
  //#region src/lower/front-matter.d.ts
4
4
  interface FrontMatterResult {
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.js";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.js";
2
2
  import { LayoutMetadata } from "document-schema.js";
3
3
  //#region src/lower/front-matter.d.ts
4
4
  interface FrontMatterResult {
@@ -1,5 +1,5 @@
1
1
  import { v as MarkdownInlineNode } from "../ast-CNfTgS0N.cjs";
2
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.cjs";
2
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.cjs";
3
3
  import { ContentRun, RunConstructExtent } from "document-schema.js";
4
4
  //#region src/lower/inline.d.ts
5
5
  interface InlineLowerContext {
@@ -1,5 +1,5 @@
1
1
  import { v as MarkdownInlineNode } from "../ast-CNfTgS0N.js";
2
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.js";
2
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.js";
3
3
  import { ContentRun, RunConstructExtent } from "document-schema.js";
4
4
  //#region src/lower/inline.d.ts
5
5
  interface InlineLowerContext {
@@ -212,42 +212,21 @@ function lowerMathBlock(node, context) {
212
212
  }
213
213
  }];
214
214
  }
215
- function blockquoteSubtreeContainsHeading(node) {
216
- const walk = (block) => {
217
- switch (block.type) {
218
- case "heading": return true;
219
- case "blockquote":
220
- case "list":
221
- case "listItem": return block.children.some(walk);
222
- default: return false;
223
- }
224
- };
225
- return node.children.some(walk);
226
- }
227
215
  function lowerBlockquote(node, context, contentWidthPt) {
228
216
  const nested = {
229
217
  ...context,
230
218
  quoteDepth: context.quoteDepth + 1
231
219
  };
232
220
  const blocks = node.children.flatMap((child) => lowerBlock(child, nested, contentWidthPt));
233
- const inner = blocks.length === 0 ? [decorateParagraph({
234
- kind: "paragraph",
235
- runs: []
236
- }, nested)] : blocks;
237
- if (blockquoteSubtreeContainsHeading(node)) {
238
- context.sink({
239
- code: require_diagnostics_diagnostics.MarkdownDiagnosticCodes.BLOCKQUOTE_CONTAINER_SKIPPED,
240
- severity: "info",
241
- message: "a blockquote containing a heading cannot carry its division construct -- a marker extent may not open a heading scope, and the last heading inside an extent always leaves one standing -- so this quote degrades to indent-only structure while the heading keeps its heading fidelity"
242
- });
243
- return inner;
244
- }
245
221
  return [
246
222
  {
247
223
  kind: "constructStart",
248
224
  descriptor: { kind: "division" }
249
225
  },
250
- ...inner,
226
+ ...blocks.length === 0 ? [decorateParagraph({
227
+ kind: "paragraph",
228
+ runs: []
229
+ }, nested)] : blocks,
251
230
  { kind: "constructEnd" }
252
231
  ];
253
232
  }
@@ -303,46 +282,13 @@ function lowerList(node, ancestorNumId, level, context, contentWidthPt) {
303
282
  }
304
283
  return node.children.flatMap((item) => lowerListItem(item, numId, level, context, contentWidthPt));
305
284
  }
306
- function flattenFootnoteBodyHeadings(node, context) {
307
- switch (node.type) {
308
- case "heading":
309
- context.sink({
310
- code: require_diagnostics_diagnostics.MarkdownDiagnosticCodes.FOOTNOTE_BODY_HEADING_FLATTENED,
311
- severity: "info",
312
- message: `a level-${String(node.level)} heading inside a footnote definition's body is carried as literal ATX text: a construct boundary marker's extent may not contain a block that opens or closes a heading scope, so the heading cannot stay a heading inside the anchor construct the definition lowers to`
313
- });
314
- return {
315
- type: "paragraph",
316
- children: [{
317
- type: "text",
318
- value: `${"#".repeat(node.level)} `
319
- }, ...node.children]
320
- };
321
- case "blockquote": return {
322
- type: "blockquote",
323
- children: node.children.map((child) => flattenFootnoteBodyHeadings(child, context))
324
- };
325
- case "list": return {
326
- ...node,
327
- children: node.children.map((item) => flattenFootnoteBodyHeadingsInItem(item, context))
328
- };
329
- case "listItem": return flattenFootnoteBodyHeadingsInItem(node, context);
330
- default: return node;
331
- }
332
- }
333
- function flattenFootnoteBodyHeadingsInItem(item, context) {
334
- return {
335
- ...item,
336
- children: item.children.map((child) => flattenFootnoteBodyHeadings(child, context))
337
- };
338
- }
339
285
  function lowerFootnoteDefinition(node, context, contentWidthPt) {
340
286
  const descriptor = {
341
287
  kind: "anchor",
342
288
  anchorType: "footnote",
343
289
  name: node.label
344
290
  };
345
- const body = node.children.flatMap((child) => lowerBlock(flattenFootnoteBodyHeadings(child, context), context, contentWidthPt));
291
+ const body = node.children.flatMap((child) => lowerBlock(child, context, contentWidthPt));
346
292
  return [
347
293
  {
348
294
  kind: "constructStart",
@@ -211,42 +211,21 @@ function lowerMathBlock(node, context) {
211
211
  }
212
212
  }];
213
213
  }
214
- function blockquoteSubtreeContainsHeading(node) {
215
- const walk = (block) => {
216
- switch (block.type) {
217
- case "heading": return true;
218
- case "blockquote":
219
- case "list":
220
- case "listItem": return block.children.some(walk);
221
- default: return false;
222
- }
223
- };
224
- return node.children.some(walk);
225
- }
226
214
  function lowerBlockquote(node, context, contentWidthPt) {
227
215
  const nested = {
228
216
  ...context,
229
217
  quoteDepth: context.quoteDepth + 1
230
218
  };
231
219
  const blocks = node.children.flatMap((child) => lowerBlock(child, nested, contentWidthPt));
232
- const inner = blocks.length === 0 ? [decorateParagraph({
233
- kind: "paragraph",
234
- runs: []
235
- }, nested)] : blocks;
236
- if (blockquoteSubtreeContainsHeading(node)) {
237
- context.sink({
238
- code: MarkdownDiagnosticCodes.BLOCKQUOTE_CONTAINER_SKIPPED,
239
- severity: "info",
240
- message: "a blockquote containing a heading cannot carry its division construct -- a marker extent may not open a heading scope, and the last heading inside an extent always leaves one standing -- so this quote degrades to indent-only structure while the heading keeps its heading fidelity"
241
- });
242
- return inner;
243
- }
244
220
  return [
245
221
  {
246
222
  kind: "constructStart",
247
223
  descriptor: { kind: "division" }
248
224
  },
249
- ...inner,
225
+ ...blocks.length === 0 ? [decorateParagraph({
226
+ kind: "paragraph",
227
+ runs: []
228
+ }, nested)] : blocks,
250
229
  { kind: "constructEnd" }
251
230
  ];
252
231
  }
@@ -302,46 +281,13 @@ function lowerList(node, ancestorNumId, level, context, contentWidthPt) {
302
281
  }
303
282
  return node.children.flatMap((item) => lowerListItem(item, numId, level, context, contentWidthPt));
304
283
  }
305
- function flattenFootnoteBodyHeadings(node, context) {
306
- switch (node.type) {
307
- case "heading":
308
- context.sink({
309
- code: MarkdownDiagnosticCodes.FOOTNOTE_BODY_HEADING_FLATTENED,
310
- severity: "info",
311
- message: `a level-${String(node.level)} heading inside a footnote definition's body is carried as literal ATX text: a construct boundary marker's extent may not contain a block that opens or closes a heading scope, so the heading cannot stay a heading inside the anchor construct the definition lowers to`
312
- });
313
- return {
314
- type: "paragraph",
315
- children: [{
316
- type: "text",
317
- value: `${"#".repeat(node.level)} `
318
- }, ...node.children]
319
- };
320
- case "blockquote": return {
321
- type: "blockquote",
322
- children: node.children.map((child) => flattenFootnoteBodyHeadings(child, context))
323
- };
324
- case "list": return {
325
- ...node,
326
- children: node.children.map((item) => flattenFootnoteBodyHeadingsInItem(item, context))
327
- };
328
- case "listItem": return flattenFootnoteBodyHeadingsInItem(node, context);
329
- default: return node;
330
- }
331
- }
332
- function flattenFootnoteBodyHeadingsInItem(item, context) {
333
- return {
334
- ...item,
335
- children: item.children.map((child) => flattenFootnoteBodyHeadings(child, context))
336
- };
337
- }
338
284
  function lowerFootnoteDefinition(node, context, contentWidthPt) {
339
285
  const descriptor = {
340
286
  kind: "anchor",
341
287
  anchorType: "footnote",
342
288
  name: node.label
343
289
  };
344
- const body = node.children.flatMap((child) => lowerBlock(flattenFootnoteBodyHeadings(child, context), context, contentWidthPt));
290
+ const body = node.children.flatMap((child) => lowerBlock(child, context, contentWidthPt));
345
291
  return [
346
292
  {
347
293
  kind: "constructStart",
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.cjs";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.cjs";
2
2
  import { n as MarkdownImageResolver } from "../image-B5L0HpAJ.cjs";
3
3
  import { Margins, PageSize } from "document-schema.js";
4
4
  //#region src/options/options.d.ts
@@ -1,4 +1,4 @@
1
- import { i as MarkdownDiagnosticSink } from "../diagnostics-DLum7kY6.js";
1
+ import { i as MarkdownDiagnosticSink } from "../diagnostics-CjfBoW4K.js";
2
2
  import { n as MarkdownImageResolver } from "../image-C390OIB3.js";
3
3
  import { Margins, PageSize } from "document-schema.js";
4
4
  //#region src/options/options.d.ts
package/dist/read.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as MarkdownDiagnostic } from "./diagnostics-DLum7kY6.cjs";
1
+ import { t as MarkdownDiagnostic } from "./diagnostics-CjfBoW4K.cjs";
2
2
  import { ReadMarkdownOptions } from "./options/options.cjs";
3
3
  import { ContentDocument, DocumentTree } from "document-schema.js";
4
4
  //#region src/read.d.ts
package/dist/read.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as MarkdownDiagnostic } from "./diagnostics-DLum7kY6.js";
1
+ import { t as MarkdownDiagnostic } from "./diagnostics-CjfBoW4K.js";
2
2
  import { ReadMarkdownOptions } from "./options/options.js";
3
3
  import { ContentDocument, DocumentTree } from "document-schema.js";
4
4
  //#region src/read.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-codec",
3
- "version": "6.5.2",
3
+ "version": "6.6.1",
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.5.0",
86
+ "document-schema.js": "7.6.0",
87
87
  "zod": "4.4.3"
88
88
  },
89
89
  "devDependencies": {