markdown-codec 8.0.1 → 9.0.0
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/README.md +1 -1
- package/dist/block/block.d.cts +1 -1
- package/dist/block/block.d.ts +1 -1
- package/dist/block/definitions.d.cts +1 -1
- package/dist/block/definitions.d.ts +1 -1
- package/dist/codec.d.cts +33 -33
- package/dist/codec.d.ts +33 -33
- package/dist/diagnostics/diagnostics.cjs +10 -0
- package/dist/diagnostics/diagnostics.d.cts +2 -2
- package/dist/diagnostics/diagnostics.d.ts +2 -2
- package/dist/diagnostics/diagnostics.js +10 -1
- package/dist/{diagnostics-CjfBoW4K.d.cts → diagnostics-Dzg9Nl9H.d.cts} +6 -1
- package/dist/{diagnostics-CjfBoW4K.d.ts → diagnostics-Dzg9Nl9H.d.ts} +6 -1
- package/dist/emit/html-table.cjs +9 -0
- package/dist/emit/html-table.d.cts +5 -1
- package/dist/emit/html-table.d.ts +5 -1
- package/dist/emit/html-table.js +11 -3
- package/dist/emit/inline.d.cts +1 -1
- package/dist/emit/inline.d.ts +1 -1
- package/dist/emit/table.cjs +1 -0
- package/dist/emit/table.d.cts +2 -2
- package/dist/emit/table.d.ts +2 -2
- package/dist/emit/table.js +2 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{inline-DCIKQ83j.d.cts → inline-C2130eAp.d.cts} +1 -1
- package/dist/{inline-INoDAG37.d.ts → inline-DwGatpGm.d.ts} +1 -1
- package/dist/lower/front-matter.d.cts +1 -1
- package/dist/lower/front-matter.d.ts +1 -1
- package/dist/lower/inline.d.cts +1 -1
- package/dist/lower/inline.d.ts +1 -1
- package/dist/options/options.d.cts +1 -1
- package/dist/options/options.d.ts +1 -1
- package/dist/read.d.cts +1 -1
- package/dist/read.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ Emission is the inverse and validates first: a section's markers must pair as ba
|
|
|
229
229
|
|
|
230
230
|
## HTML-table fallback
|
|
231
231
|
|
|
232
|
-
GFM's own pipe-table syntax (github.github.com/gfm, "Tables (extension)") holds inline content only — no cell can carry `colSpan`/`rowSpan`/a background, and no cell can hold a block that isn't inlinable (a nested table, most notably). `writeMarkdownContent` detects this per table (`tableNeedsHtmlFallback`, `src/emit/html-table.ts`): the moment ANY cell needs one of these, the WHOLE table renders as a raw HTML `<table>` block instead of the plain `| a | b |` writer — GFM's own cell grammar cannot mix an HTML sub-block into one cell of an otherwise pipe-syntax table, so a partial, per-cell fallback is not an option. A raw HTML `<table>` block is legal CommonMark regardless (spec 0.31.2, "HTML blocks" start condition 6 names `table` directly — <https://spec.commonmark.org/0.31.2/#html-blocks>). A table with none of these needs still emits the existing, human-readable pipe syntax, unaffected.
|
|
232
|
+
GFM's own pipe-table syntax (github.github.com/gfm, "Tables (extension)") holds inline content only — no cell can carry `colSpan`/`rowSpan`/a background, and no cell can hold a block that isn't inlinable (a nested table, most notably). `writeMarkdownContent` detects this per table (`tableNeedsHtmlFallback`, `src/emit/html-table.ts`): the moment ANY cell needs one of these, the WHOLE table renders as a raw HTML `<table>` block instead of the plain `| a | b |` writer — GFM's own cell grammar cannot mix an HTML sub-block into one cell of an otherwise pipe-syntax table, so a partial, per-cell fallback is not an option. A raw HTML `<table>` block is legal CommonMark regardless (spec 0.31.2, "HTML blocks" start condition 6 names `table` directly — <https://spec.commonmark.org/0.31.2/#html-blocks>). A table with none of these needs still emits the existing, human-readable pipe syntax, unaffected. Either way a table must obey the grid rule (document-schema.js's `findTableGridFault`: no blocks or span on a covered position, rows of one length, no region running past the grid or into another) or `writeMarkdownContent` throws `MarkdownTableGridFaultError`, since neither a pipe row nor an HTML row has a cell for a covered position's content.
|
|
233
233
|
|
|
234
234
|
`readMarkdownContent`/`readMarkdown` recognise this same shape on the way back in (`parseHtmlTable`, `src/html/html-table.ts`) — the one exception to this package's own "raw HTML is never parsed as markup" rule (see the raw-HTML gotcha above and `src/html/html.ts`'s own top comment): a block-level HTML that is, in full, one well-formed `<table>` lowers straight to a real `ContentTable`, so a table written through this fallback reads back as an equal (or equivalent) `ContentTable` rather than degrading to opaque preserved text. This recognition is gated on GFM's table extension being enabled (`gfmTables`, default `true`) exactly the way plain pipe-table promotion already is — with it disabled, a `<table>` block stays exactly the opaque raw HTML it always was, since a `ContentTable` is a GFM-table-extension construct either way it is spelled in the source.
|
|
235
235
|
|
package/dist/block/block.d.cts
CHANGED
|
@@ -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-
|
|
3
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.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
|
package/dist/block/block.d.ts
CHANGED
|
@@ -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-
|
|
3
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.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-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.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-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.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
|
@@ -17,8 +17,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
17
17
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
18
18
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
left: "left";
|
|
20
|
-
center: "center";
|
|
21
20
|
right: "right";
|
|
21
|
+
center: "center";
|
|
22
22
|
justify: "justify";
|
|
23
23
|
}>>;
|
|
24
24
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -172,8 +172,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
172
172
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
173
173
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
174
174
|
left: "left";
|
|
175
|
-
center: "center";
|
|
176
175
|
right: "right";
|
|
176
|
+
center: "center";
|
|
177
177
|
justify: "justify";
|
|
178
178
|
}>>;
|
|
179
179
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -332,8 +332,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
332
332
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
333
333
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
334
334
|
left: "left";
|
|
335
|
-
center: "center";
|
|
336
335
|
right: "right";
|
|
336
|
+
center: "center";
|
|
337
337
|
justify: "justify";
|
|
338
338
|
}>>;
|
|
339
339
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -487,8 +487,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
487
487
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
488
488
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
489
489
|
left: "left";
|
|
490
|
-
center: "center";
|
|
491
490
|
right: "right";
|
|
491
|
+
center: "center";
|
|
492
492
|
justify: "justify";
|
|
493
493
|
}>>;
|
|
494
494
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -630,11 +630,11 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
630
630
|
children: z.ZodArray<z.ZodObject<{
|
|
631
631
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
632
632
|
chart: "chart";
|
|
633
|
-
body: "body";
|
|
634
633
|
diagram: "diagram";
|
|
635
634
|
table: "table";
|
|
636
635
|
image: "image";
|
|
637
636
|
notes: "notes";
|
|
637
|
+
body: "body";
|
|
638
638
|
}>>;
|
|
639
639
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
640
640
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -701,8 +701,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
701
701
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
702
702
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
703
703
|
left: "left";
|
|
704
|
-
center: "center";
|
|
705
704
|
right: "right";
|
|
705
|
+
center: "center";
|
|
706
706
|
justify: "justify";
|
|
707
707
|
}>>;
|
|
708
708
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -845,11 +845,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
845
845
|
sections: z.ZodArray<z.ZodObject<{
|
|
846
846
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
847
847
|
chart: "chart";
|
|
848
|
-
body: "body";
|
|
849
848
|
diagram: "diagram";
|
|
850
849
|
table: "table";
|
|
851
850
|
image: "image";
|
|
852
851
|
notes: "notes";
|
|
852
|
+
body: "body";
|
|
853
853
|
}>>;
|
|
854
854
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
855
855
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -994,11 +994,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
994
994
|
slides: z.ZodArray<z.ZodObject<{
|
|
995
995
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
996
996
|
chart: "chart";
|
|
997
|
-
body: "body";
|
|
998
997
|
diagram: "diagram";
|
|
999
998
|
table: "table";
|
|
1000
999
|
image: "image";
|
|
1001
1000
|
notes: "notes";
|
|
1001
|
+
body: "body";
|
|
1002
1002
|
}>>;
|
|
1003
1003
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1004
1004
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1027,11 +1027,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1027
1027
|
blocks: 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>>>>;
|
|
1028
1028
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1029
1029
|
chart: "chart";
|
|
1030
|
-
body: "body";
|
|
1031
1030
|
diagram: "diagram";
|
|
1032
1031
|
table: "table";
|
|
1033
1032
|
image: "image";
|
|
1034
1033
|
notes: "notes";
|
|
1034
|
+
body: "body";
|
|
1035
1035
|
}>>;
|
|
1036
1036
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1037
1037
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1190,11 +1190,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1190
1190
|
sheets: z.ZodArray<z.ZodObject<{
|
|
1191
1191
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1192
1192
|
chart: "chart";
|
|
1193
|
-
body: "body";
|
|
1194
1193
|
diagram: "diagram";
|
|
1195
1194
|
table: "table";
|
|
1196
1195
|
image: "image";
|
|
1197
1196
|
notes: "notes";
|
|
1197
|
+
body: "body";
|
|
1198
1198
|
}>>;
|
|
1199
1199
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1200
1200
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1219,11 +1219,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1219
1219
|
cells: z.ZodArray<z.ZodObject<{
|
|
1220
1220
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1221
1221
|
chart: "chart";
|
|
1222
|
-
body: "body";
|
|
1223
1222
|
diagram: "diagram";
|
|
1224
1223
|
table: "table";
|
|
1225
1224
|
image: "image";
|
|
1226
1225
|
notes: "notes";
|
|
1226
|
+
body: "body";
|
|
1227
1227
|
}>>;
|
|
1228
1228
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1229
1229
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1299,11 +1299,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1299
1299
|
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1300
1300
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1301
1301
|
chart: "chart";
|
|
1302
|
-
body: "body";
|
|
1303
1302
|
diagram: "diagram";
|
|
1304
1303
|
table: "table";
|
|
1305
1304
|
image: "image";
|
|
1306
1305
|
notes: "notes";
|
|
1306
|
+
body: "body";
|
|
1307
1307
|
}>>;
|
|
1308
1308
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1309
1309
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1538,8 +1538,8 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1538
1538
|
}, z.core.$strip>>;
|
|
1539
1539
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1540
1540
|
left: "left";
|
|
1541
|
-
center: "center";
|
|
1542
1541
|
right: "right";
|
|
1542
|
+
center: "center";
|
|
1543
1543
|
justify: "justify";
|
|
1544
1544
|
}>>;
|
|
1545
1545
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1598,11 +1598,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1598
1598
|
images: z.ZodArray<z.ZodObject<{
|
|
1599
1599
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1600
1600
|
chart: "chart";
|
|
1601
|
-
body: "body";
|
|
1602
1601
|
diagram: "diagram";
|
|
1603
1602
|
table: "table";
|
|
1604
1603
|
image: "image";
|
|
1605
1604
|
notes: "notes";
|
|
1605
|
+
body: "body";
|
|
1606
1606
|
}>>;
|
|
1607
1607
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1608
1608
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1681,10 +1681,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1681
1681
|
}>;
|
|
1682
1682
|
align: z.ZodEnum<{
|
|
1683
1683
|
left: "left";
|
|
1684
|
-
center: "center";
|
|
1685
1684
|
right: "right";
|
|
1686
1685
|
top: "top";
|
|
1687
1686
|
bottom: "bottom";
|
|
1687
|
+
center: "center";
|
|
1688
1688
|
inside: "inside";
|
|
1689
1689
|
outside: "outside";
|
|
1690
1690
|
}>;
|
|
@@ -1724,10 +1724,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1724
1724
|
}>;
|
|
1725
1725
|
align: z.ZodEnum<{
|
|
1726
1726
|
left: "left";
|
|
1727
|
-
center: "center";
|
|
1728
1727
|
right: "right";
|
|
1729
1728
|
top: "top";
|
|
1730
1729
|
bottom: "bottom";
|
|
1730
|
+
center: "center";
|
|
1731
1731
|
inside: "inside";
|
|
1732
1732
|
outside: "outside";
|
|
1733
1733
|
}>;
|
|
@@ -1816,10 +1816,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1816
1816
|
endColumn: z.ZodNumber;
|
|
1817
1817
|
}, z.core.$strip>>;
|
|
1818
1818
|
type: z.ZodEnum<{
|
|
1819
|
-
decimal: "decimal";
|
|
1820
|
-
list: "list";
|
|
1821
1819
|
date: "date";
|
|
1822
1820
|
custom: "custom";
|
|
1821
|
+
decimal: "decimal";
|
|
1822
|
+
list: "list";
|
|
1823
1823
|
time: "time";
|
|
1824
1824
|
whole: "whole";
|
|
1825
1825
|
textLength: "textLength";
|
|
@@ -2292,10 +2292,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2292
2292
|
value: z.ZodObject<{
|
|
2293
2293
|
type: z.ZodEnum<{
|
|
2294
2294
|
formula: "formula";
|
|
2295
|
+
percent: "percent";
|
|
2295
2296
|
num: "num";
|
|
2296
|
-
min: "min";
|
|
2297
2297
|
max: "max";
|
|
2298
|
-
|
|
2298
|
+
min: "min";
|
|
2299
2299
|
percentile: "percentile";
|
|
2300
2300
|
}>;
|
|
2301
2301
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2339,10 +2339,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2339
2339
|
min: z.ZodObject<{
|
|
2340
2340
|
type: z.ZodEnum<{
|
|
2341
2341
|
formula: "formula";
|
|
2342
|
+
percent: "percent";
|
|
2342
2343
|
num: "num";
|
|
2343
|
-
min: "min";
|
|
2344
2344
|
max: "max";
|
|
2345
|
-
|
|
2345
|
+
min: "min";
|
|
2346
2346
|
percentile: "percentile";
|
|
2347
2347
|
}>;
|
|
2348
2348
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2350,10 +2350,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2350
2350
|
max: z.ZodObject<{
|
|
2351
2351
|
type: z.ZodEnum<{
|
|
2352
2352
|
formula: "formula";
|
|
2353
|
+
percent: "percent";
|
|
2353
2354
|
num: "num";
|
|
2354
|
-
min: "min";
|
|
2355
2355
|
max: "max";
|
|
2356
|
-
|
|
2356
|
+
min: "min";
|
|
2357
2357
|
percentile: "percentile";
|
|
2358
2358
|
}>;
|
|
2359
2359
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2398,10 +2398,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2398
2398
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
2399
2399
|
type: z.ZodEnum<{
|
|
2400
2400
|
formula: "formula";
|
|
2401
|
+
percent: "percent";
|
|
2401
2402
|
num: "num";
|
|
2402
|
-
min: "min";
|
|
2403
2403
|
max: "max";
|
|
2404
|
-
|
|
2404
|
+
min: "min";
|
|
2405
2405
|
percentile: "percentile";
|
|
2406
2406
|
}>;
|
|
2407
2407
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2535,11 +2535,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2535
2535
|
pages: z.ZodArray<z.ZodObject<{
|
|
2536
2536
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2537
2537
|
chart: "chart";
|
|
2538
|
-
body: "body";
|
|
2539
2538
|
diagram: "diagram";
|
|
2540
2539
|
table: "table";
|
|
2541
2540
|
image: "image";
|
|
2542
2541
|
notes: "notes";
|
|
2542
|
+
body: "body";
|
|
2543
2543
|
}>>;
|
|
2544
2544
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2545
2545
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2568,11 +2568,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2568
2568
|
blocks: 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>>>>;
|
|
2569
2569
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2570
2570
|
chart: "chart";
|
|
2571
|
-
body: "body";
|
|
2572
2571
|
diagram: "diagram";
|
|
2573
2572
|
table: "table";
|
|
2574
2573
|
image: "image";
|
|
2575
2574
|
notes: "notes";
|
|
2575
|
+
body: "body";
|
|
2576
2576
|
}>>;
|
|
2577
2577
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2578
2578
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2641,11 +2641,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2641
2641
|
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2642
2642
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2643
2643
|
chart: "chart";
|
|
2644
|
-
body: "body";
|
|
2645
2644
|
diagram: "diagram";
|
|
2646
2645
|
table: "table";
|
|
2647
2646
|
image: "image";
|
|
2648
2647
|
notes: "notes";
|
|
2648
|
+
body: "body";
|
|
2649
2649
|
}>>;
|
|
2650
2650
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2651
2651
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2779,11 +2779,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2779
2779
|
}, z.core.$strip>, z.ZodObject<{
|
|
2780
2780
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2781
2781
|
chart: "chart";
|
|
2782
|
-
body: "body";
|
|
2783
2782
|
diagram: "diagram";
|
|
2784
2783
|
table: "table";
|
|
2785
2784
|
image: "image";
|
|
2786
2785
|
notes: "notes";
|
|
2786
|
+
body: "body";
|
|
2787
2787
|
}>>;
|
|
2788
2788
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2789
2789
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2917,11 +2917,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2917
2917
|
}, z.core.$strip>, z.ZodObject<{
|
|
2918
2918
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2919
2919
|
chart: "chart";
|
|
2920
|
-
body: "body";
|
|
2921
2920
|
diagram: "diagram";
|
|
2922
2921
|
table: "table";
|
|
2923
2922
|
image: "image";
|
|
2924
2923
|
notes: "notes";
|
|
2924
|
+
body: "body";
|
|
2925
2925
|
}>>;
|
|
2926
2926
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2927
2927
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -3005,11 +3005,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
3005
3005
|
}, z.core.$strip>, z.ZodObject<{
|
|
3006
3006
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3007
3007
|
chart: "chart";
|
|
3008
|
-
body: "body";
|
|
3009
3008
|
diagram: "diagram";
|
|
3010
3009
|
table: "table";
|
|
3011
3010
|
image: "image";
|
|
3012
3011
|
notes: "notes";
|
|
3012
|
+
body: "body";
|
|
3013
3013
|
}>>;
|
|
3014
3014
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
3015
3015
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -3265,11 +3265,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
3265
3265
|
formula: z.ZodObject<{
|
|
3266
3266
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3267
3267
|
chart: "chart";
|
|
3268
|
-
body: "body";
|
|
3269
3268
|
diagram: "diagram";
|
|
3270
3269
|
table: "table";
|
|
3271
3270
|
image: "image";
|
|
3272
3271
|
notes: "notes";
|
|
3272
|
+
body: "body";
|
|
3273
3273
|
}>>;
|
|
3274
3274
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
3275
3275
|
transcript: z.ZodOptional<z.ZodObject<{
|
package/dist/codec.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
17
17
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
18
18
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
left: "left";
|
|
20
|
-
center: "center";
|
|
21
20
|
right: "right";
|
|
21
|
+
center: "center";
|
|
22
22
|
justify: "justify";
|
|
23
23
|
}>>;
|
|
24
24
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -172,8 +172,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
172
172
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
173
173
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
174
174
|
left: "left";
|
|
175
|
-
center: "center";
|
|
176
175
|
right: "right";
|
|
176
|
+
center: "center";
|
|
177
177
|
justify: "justify";
|
|
178
178
|
}>>;
|
|
179
179
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -332,8 +332,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
332
332
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
333
333
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
334
334
|
left: "left";
|
|
335
|
-
center: "center";
|
|
336
335
|
right: "right";
|
|
336
|
+
center: "center";
|
|
337
337
|
justify: "justify";
|
|
338
338
|
}>>;
|
|
339
339
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -487,8 +487,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
487
487
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
488
488
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
489
489
|
left: "left";
|
|
490
|
-
center: "center";
|
|
491
490
|
right: "right";
|
|
491
|
+
center: "center";
|
|
492
492
|
justify: "justify";
|
|
493
493
|
}>>;
|
|
494
494
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -630,11 +630,11 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
630
630
|
children: z.ZodArray<z.ZodObject<{
|
|
631
631
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
632
632
|
chart: "chart";
|
|
633
|
-
body: "body";
|
|
634
633
|
diagram: "diagram";
|
|
635
634
|
table: "table";
|
|
636
635
|
image: "image";
|
|
637
636
|
notes: "notes";
|
|
637
|
+
body: "body";
|
|
638
638
|
}>>;
|
|
639
639
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
640
640
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -701,8 +701,8 @@ declare const markdownCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uin
|
|
|
701
701
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
702
702
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
703
703
|
left: "left";
|
|
704
|
-
center: "center";
|
|
705
704
|
right: "right";
|
|
705
|
+
center: "center";
|
|
706
706
|
justify: "justify";
|
|
707
707
|
}>>;
|
|
708
708
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -845,11 +845,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
845
845
|
sections: z.ZodArray<z.ZodObject<{
|
|
846
846
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
847
847
|
chart: "chart";
|
|
848
|
-
body: "body";
|
|
849
848
|
diagram: "diagram";
|
|
850
849
|
table: "table";
|
|
851
850
|
image: "image";
|
|
852
851
|
notes: "notes";
|
|
852
|
+
body: "body";
|
|
853
853
|
}>>;
|
|
854
854
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
855
855
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -994,11 +994,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
994
994
|
slides: z.ZodArray<z.ZodObject<{
|
|
995
995
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
996
996
|
chart: "chart";
|
|
997
|
-
body: "body";
|
|
998
997
|
diagram: "diagram";
|
|
999
998
|
table: "table";
|
|
1000
999
|
image: "image";
|
|
1001
1000
|
notes: "notes";
|
|
1001
|
+
body: "body";
|
|
1002
1002
|
}>>;
|
|
1003
1003
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1004
1004
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1027,11 +1027,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1027
1027
|
blocks: 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>>>>;
|
|
1028
1028
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1029
1029
|
chart: "chart";
|
|
1030
|
-
body: "body";
|
|
1031
1030
|
diagram: "diagram";
|
|
1032
1031
|
table: "table";
|
|
1033
1032
|
image: "image";
|
|
1034
1033
|
notes: "notes";
|
|
1034
|
+
body: "body";
|
|
1035
1035
|
}>>;
|
|
1036
1036
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1037
1037
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1190,11 +1190,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1190
1190
|
sheets: z.ZodArray<z.ZodObject<{
|
|
1191
1191
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1192
1192
|
chart: "chart";
|
|
1193
|
-
body: "body";
|
|
1194
1193
|
diagram: "diagram";
|
|
1195
1194
|
table: "table";
|
|
1196
1195
|
image: "image";
|
|
1197
1196
|
notes: "notes";
|
|
1197
|
+
body: "body";
|
|
1198
1198
|
}>>;
|
|
1199
1199
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1200
1200
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1219,11 +1219,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1219
1219
|
cells: z.ZodArray<z.ZodObject<{
|
|
1220
1220
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1221
1221
|
chart: "chart";
|
|
1222
|
-
body: "body";
|
|
1223
1222
|
diagram: "diagram";
|
|
1224
1223
|
table: "table";
|
|
1225
1224
|
image: "image";
|
|
1226
1225
|
notes: "notes";
|
|
1226
|
+
body: "body";
|
|
1227
1227
|
}>>;
|
|
1228
1228
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1229
1229
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1299,11 +1299,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1299
1299
|
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1300
1300
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1301
1301
|
chart: "chart";
|
|
1302
|
-
body: "body";
|
|
1303
1302
|
diagram: "diagram";
|
|
1304
1303
|
table: "table";
|
|
1305
1304
|
image: "image";
|
|
1306
1305
|
notes: "notes";
|
|
1306
|
+
body: "body";
|
|
1307
1307
|
}>>;
|
|
1308
1308
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1309
1309
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1538,8 +1538,8 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1538
1538
|
}, z.core.$strip>>;
|
|
1539
1539
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1540
1540
|
left: "left";
|
|
1541
|
-
center: "center";
|
|
1542
1541
|
right: "right";
|
|
1542
|
+
center: "center";
|
|
1543
1543
|
justify: "justify";
|
|
1544
1544
|
}>>;
|
|
1545
1545
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1598,11 +1598,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1598
1598
|
images: z.ZodArray<z.ZodObject<{
|
|
1599
1599
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1600
1600
|
chart: "chart";
|
|
1601
|
-
body: "body";
|
|
1602
1601
|
diagram: "diagram";
|
|
1603
1602
|
table: "table";
|
|
1604
1603
|
image: "image";
|
|
1605
1604
|
notes: "notes";
|
|
1605
|
+
body: "body";
|
|
1606
1606
|
}>>;
|
|
1607
1607
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
1608
1608
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1681,10 +1681,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1681
1681
|
}>;
|
|
1682
1682
|
align: z.ZodEnum<{
|
|
1683
1683
|
left: "left";
|
|
1684
|
-
center: "center";
|
|
1685
1684
|
right: "right";
|
|
1686
1685
|
top: "top";
|
|
1687
1686
|
bottom: "bottom";
|
|
1687
|
+
center: "center";
|
|
1688
1688
|
inside: "inside";
|
|
1689
1689
|
outside: "outside";
|
|
1690
1690
|
}>;
|
|
@@ -1724,10 +1724,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1724
1724
|
}>;
|
|
1725
1725
|
align: z.ZodEnum<{
|
|
1726
1726
|
left: "left";
|
|
1727
|
-
center: "center";
|
|
1728
1727
|
right: "right";
|
|
1729
1728
|
top: "top";
|
|
1730
1729
|
bottom: "bottom";
|
|
1730
|
+
center: "center";
|
|
1731
1731
|
inside: "inside";
|
|
1732
1732
|
outside: "outside";
|
|
1733
1733
|
}>;
|
|
@@ -1816,10 +1816,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
1816
1816
|
endColumn: z.ZodNumber;
|
|
1817
1817
|
}, z.core.$strip>>;
|
|
1818
1818
|
type: z.ZodEnum<{
|
|
1819
|
-
decimal: "decimal";
|
|
1820
|
-
list: "list";
|
|
1821
1819
|
date: "date";
|
|
1822
1820
|
custom: "custom";
|
|
1821
|
+
decimal: "decimal";
|
|
1822
|
+
list: "list";
|
|
1823
1823
|
time: "time";
|
|
1824
1824
|
whole: "whole";
|
|
1825
1825
|
textLength: "textLength";
|
|
@@ -2292,10 +2292,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2292
2292
|
value: z.ZodObject<{
|
|
2293
2293
|
type: z.ZodEnum<{
|
|
2294
2294
|
formula: "formula";
|
|
2295
|
+
percent: "percent";
|
|
2295
2296
|
num: "num";
|
|
2296
|
-
min: "min";
|
|
2297
2297
|
max: "max";
|
|
2298
|
-
|
|
2298
|
+
min: "min";
|
|
2299
2299
|
percentile: "percentile";
|
|
2300
2300
|
}>;
|
|
2301
2301
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2339,10 +2339,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2339
2339
|
min: z.ZodObject<{
|
|
2340
2340
|
type: z.ZodEnum<{
|
|
2341
2341
|
formula: "formula";
|
|
2342
|
+
percent: "percent";
|
|
2342
2343
|
num: "num";
|
|
2343
|
-
min: "min";
|
|
2344
2344
|
max: "max";
|
|
2345
|
-
|
|
2345
|
+
min: "min";
|
|
2346
2346
|
percentile: "percentile";
|
|
2347
2347
|
}>;
|
|
2348
2348
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2350,10 +2350,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2350
2350
|
max: z.ZodObject<{
|
|
2351
2351
|
type: z.ZodEnum<{
|
|
2352
2352
|
formula: "formula";
|
|
2353
|
+
percent: "percent";
|
|
2353
2354
|
num: "num";
|
|
2354
|
-
min: "min";
|
|
2355
2355
|
max: "max";
|
|
2356
|
-
|
|
2356
|
+
min: "min";
|
|
2357
2357
|
percentile: "percentile";
|
|
2358
2358
|
}>;
|
|
2359
2359
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2398,10 +2398,10 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2398
2398
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
2399
2399
|
type: z.ZodEnum<{
|
|
2400
2400
|
formula: "formula";
|
|
2401
|
+
percent: "percent";
|
|
2401
2402
|
num: "num";
|
|
2402
|
-
min: "min";
|
|
2403
2403
|
max: "max";
|
|
2404
|
-
|
|
2404
|
+
min: "min";
|
|
2405
2405
|
percentile: "percentile";
|
|
2406
2406
|
}>;
|
|
2407
2407
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2535,11 +2535,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2535
2535
|
pages: z.ZodArray<z.ZodObject<{
|
|
2536
2536
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2537
2537
|
chart: "chart";
|
|
2538
|
-
body: "body";
|
|
2539
2538
|
diagram: "diagram";
|
|
2540
2539
|
table: "table";
|
|
2541
2540
|
image: "image";
|
|
2542
2541
|
notes: "notes";
|
|
2542
|
+
body: "body";
|
|
2543
2543
|
}>>;
|
|
2544
2544
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2545
2545
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2568,11 +2568,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2568
2568
|
blocks: 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>>>>;
|
|
2569
2569
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2570
2570
|
chart: "chart";
|
|
2571
|
-
body: "body";
|
|
2572
2571
|
diagram: "diagram";
|
|
2573
2572
|
table: "table";
|
|
2574
2573
|
image: "image";
|
|
2575
2574
|
notes: "notes";
|
|
2575
|
+
body: "body";
|
|
2576
2576
|
}>>;
|
|
2577
2577
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2578
2578
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2641,11 +2641,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2641
2641
|
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2642
2642
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2643
2643
|
chart: "chart";
|
|
2644
|
-
body: "body";
|
|
2645
2644
|
diagram: "diagram";
|
|
2646
2645
|
table: "table";
|
|
2647
2646
|
image: "image";
|
|
2648
2647
|
notes: "notes";
|
|
2648
|
+
body: "body";
|
|
2649
2649
|
}>>;
|
|
2650
2650
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2651
2651
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2779,11 +2779,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2779
2779
|
}, z.core.$strip>, z.ZodObject<{
|
|
2780
2780
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2781
2781
|
chart: "chart";
|
|
2782
|
-
body: "body";
|
|
2783
2782
|
diagram: "diagram";
|
|
2784
2783
|
table: "table";
|
|
2785
2784
|
image: "image";
|
|
2786
2785
|
notes: "notes";
|
|
2786
|
+
body: "body";
|
|
2787
2787
|
}>>;
|
|
2788
2788
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2789
2789
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -2917,11 +2917,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
2917
2917
|
}, z.core.$strip>, z.ZodObject<{
|
|
2918
2918
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2919
2919
|
chart: "chart";
|
|
2920
|
-
body: "body";
|
|
2921
2920
|
diagram: "diagram";
|
|
2922
2921
|
table: "table";
|
|
2923
2922
|
image: "image";
|
|
2924
2923
|
notes: "notes";
|
|
2924
|
+
body: "body";
|
|
2925
2925
|
}>>;
|
|
2926
2926
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
2927
2927
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -3005,11 +3005,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
3005
3005
|
}, z.core.$strip>, z.ZodObject<{
|
|
3006
3006
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3007
3007
|
chart: "chart";
|
|
3008
|
-
body: "body";
|
|
3009
3008
|
diagram: "diagram";
|
|
3010
3009
|
table: "table";
|
|
3011
3010
|
image: "image";
|
|
3012
3011
|
notes: "notes";
|
|
3012
|
+
body: "body";
|
|
3013
3013
|
}>>;
|
|
3014
3014
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
3015
3015
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -3265,11 +3265,11 @@ declare const markdownContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffe
|
|
|
3265
3265
|
formula: z.ZodObject<{
|
|
3266
3266
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3267
3267
|
chart: "chart";
|
|
3268
|
-
body: "body";
|
|
3269
3268
|
diagram: "diagram";
|
|
3270
3269
|
table: "table";
|
|
3271
3270
|
image: "image";
|
|
3272
3271
|
notes: "notes";
|
|
3272
|
+
body: "body";
|
|
3273
3273
|
}>>;
|
|
3274
3274
|
interpretation: z.ZodOptional<z.ZodObject<{
|
|
3275
3275
|
transcript: z.ZodOptional<z.ZodObject<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let document_schema_js = require("document-schema.js");
|
|
2
3
|
//#region src/diagnostics/diagnostics.ts
|
|
3
4
|
const NOOP_MARKDOWN_DIAGNOSTIC_SINK = () => {};
|
|
4
5
|
const MarkdownDiagnosticCodes = {
|
|
@@ -83,6 +84,14 @@ var MarkdownUnbalancedConstructMarkersError = class extends MarkdownWriteError {
|
|
|
83
84
|
this.blockIndex = blockIndex;
|
|
84
85
|
}
|
|
85
86
|
};
|
|
87
|
+
var MarkdownTableGridFaultError = class extends MarkdownWriteError {
|
|
88
|
+
fault;
|
|
89
|
+
constructor(fault) {
|
|
90
|
+
super("md/table-grid-fault", `a table breaks the grid rule: ${(0, document_schema_js.describeTableGridFault)(fault)}`);
|
|
91
|
+
this.name = "MarkdownTableGridFaultError";
|
|
92
|
+
this.fault = fault;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
86
95
|
var MarkdownInvalidRunConstructExtentError = class extends MarkdownWriteError {
|
|
87
96
|
faultKind;
|
|
88
97
|
entryIndex;
|
|
@@ -116,6 +125,7 @@ exports.MarkdownInvalidUtf8Error = MarkdownInvalidUtf8Error;
|
|
|
116
125
|
exports.MarkdownNestingLimitExceededError = MarkdownNestingLimitExceededError;
|
|
117
126
|
exports.MarkdownPackageFlattenError = MarkdownPackageFlattenError;
|
|
118
127
|
exports.MarkdownParseError = MarkdownParseError;
|
|
128
|
+
exports.MarkdownTableGridFaultError = MarkdownTableGridFaultError;
|
|
119
129
|
exports.MarkdownUnbalancedConstructMarkersError = MarkdownUnbalancedConstructMarkersError;
|
|
120
130
|
exports.MarkdownUnsupportedDocumentKindError = MarkdownUnsupportedDocumentKindError;
|
|
121
131
|
exports.MarkdownWriteError = MarkdownWriteError;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as
|
|
2
|
-
export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownTableGridFaultError, f as MarkdownUnbalancedConstructMarkersError, h as NOOP_MARKDOWN_DIAGNOSTIC_SINK, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as MarkdownWriteError, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownUnsupportedDocumentKindError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-Dzg9Nl9H.cjs";
|
|
2
|
+
export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownTableGridFaultError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as
|
|
2
|
-
export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownTableGridFaultError, f as MarkdownUnbalancedConstructMarkersError, h as NOOP_MARKDOWN_DIAGNOSTIC_SINK, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as MarkdownWriteError, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownUnsupportedDocumentKindError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-Dzg9Nl9H.js";
|
|
2
|
+
export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownTableGridFaultError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { describeTableGridFault } from "document-schema.js";
|
|
1
2
|
//#region src/diagnostics/diagnostics.ts
|
|
2
3
|
const NOOP_MARKDOWN_DIAGNOSTIC_SINK = () => {};
|
|
3
4
|
const MarkdownDiagnosticCodes = {
|
|
@@ -82,6 +83,14 @@ var MarkdownUnbalancedConstructMarkersError = class extends MarkdownWriteError {
|
|
|
82
83
|
this.blockIndex = blockIndex;
|
|
83
84
|
}
|
|
84
85
|
};
|
|
86
|
+
var MarkdownTableGridFaultError = class extends MarkdownWriteError {
|
|
87
|
+
fault;
|
|
88
|
+
constructor(fault) {
|
|
89
|
+
super("md/table-grid-fault", `a table breaks the grid rule: ${describeTableGridFault(fault)}`);
|
|
90
|
+
this.name = "MarkdownTableGridFaultError";
|
|
91
|
+
this.fault = fault;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
85
94
|
var MarkdownInvalidRunConstructExtentError = class extends MarkdownWriteError {
|
|
86
95
|
faultKind;
|
|
87
96
|
entryIndex;
|
|
@@ -108,4 +117,4 @@ var MarkdownPackageFlattenError = class extends MarkdownWriteError {
|
|
|
108
117
|
}
|
|
109
118
|
};
|
|
110
119
|
//#endregion
|
|
111
|
-
export { MarkdownDiagnosticCodes, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
120
|
+
export { MarkdownDiagnosticCodes, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownTableGridFaultError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TableGridFault } from "document-schema.js";
|
|
1
2
|
//#region src/diagnostics/diagnostics.d.ts
|
|
2
3
|
type MarkdownDiagnosticSeverity = "info" | "warning";
|
|
3
4
|
interface MarkdownDiagnostic {
|
|
@@ -65,6 +66,10 @@ declare class MarkdownUnbalancedConstructMarkersError extends MarkdownWriteError
|
|
|
65
66
|
readonly blockIndex: number;
|
|
66
67
|
constructor(imbalanceKind: "unmatchedEnd" | "unclosedStart", blockIndex: number);
|
|
67
68
|
}
|
|
69
|
+
declare class MarkdownTableGridFaultError extends MarkdownWriteError {
|
|
70
|
+
readonly fault: TableGridFault;
|
|
71
|
+
constructor(fault: TableGridFault);
|
|
72
|
+
}
|
|
68
73
|
declare class MarkdownInvalidRunConstructExtentError extends MarkdownWriteError {
|
|
69
74
|
readonly faultKind: "invertedRange" | "beyondRuns";
|
|
70
75
|
readonly entryIndex: number;
|
|
@@ -78,4 +83,4 @@ declare class MarkdownPackageFlattenError extends MarkdownWriteError {
|
|
|
78
83
|
constructor(cause: unknown);
|
|
79
84
|
}
|
|
80
85
|
//#endregion
|
|
81
|
-
export { MarkdownInputTooLargeError as a, MarkdownNestingLimitExceededError as c,
|
|
86
|
+
export { MarkdownInputTooLargeError as a, MarkdownNestingLimitExceededError as c, MarkdownTableGridFaultError as d, MarkdownUnbalancedConstructMarkersError as f, NOOP_MARKDOWN_DIAGNOSTIC_SINK as h, MarkdownDiagnosticSink as i, MarkdownPackageFlattenError as l, MarkdownWriteError as m, MarkdownDiagnosticCodes as n, MarkdownInvalidRunConstructExtentError as o, MarkdownUnsupportedDocumentKindError as p, MarkdownDiagnosticSeverity as r, MarkdownInvalidUtf8Error as s, MarkdownDiagnostic as t, MarkdownParseError as u };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TableGridFault } from "document-schema.js";
|
|
1
2
|
//#region src/diagnostics/diagnostics.d.ts
|
|
2
3
|
type MarkdownDiagnosticSeverity = "info" | "warning";
|
|
3
4
|
interface MarkdownDiagnostic {
|
|
@@ -65,6 +66,10 @@ declare class MarkdownUnbalancedConstructMarkersError extends MarkdownWriteError
|
|
|
65
66
|
readonly blockIndex: number;
|
|
66
67
|
constructor(imbalanceKind: "unmatchedEnd" | "unclosedStart", blockIndex: number);
|
|
67
68
|
}
|
|
69
|
+
declare class MarkdownTableGridFaultError extends MarkdownWriteError {
|
|
70
|
+
readonly fault: TableGridFault;
|
|
71
|
+
constructor(fault: TableGridFault);
|
|
72
|
+
}
|
|
68
73
|
declare class MarkdownInvalidRunConstructExtentError extends MarkdownWriteError {
|
|
69
74
|
readonly faultKind: "invertedRange" | "beyondRuns";
|
|
70
75
|
readonly entryIndex: number;
|
|
@@ -78,4 +83,4 @@ declare class MarkdownPackageFlattenError extends MarkdownWriteError {
|
|
|
78
83
|
constructor(cause: unknown);
|
|
79
84
|
}
|
|
80
85
|
//#endregion
|
|
81
|
-
export { MarkdownInputTooLargeError as a, MarkdownNestingLimitExceededError as c,
|
|
86
|
+
export { MarkdownInputTooLargeError as a, MarkdownNestingLimitExceededError as c, MarkdownTableGridFaultError as d, MarkdownUnbalancedConstructMarkersError as f, NOOP_MARKDOWN_DIAGNOSTIC_SINK as h, MarkdownDiagnosticSink as i, MarkdownPackageFlattenError as l, MarkdownWriteError as m, MarkdownDiagnosticCodes as n, MarkdownInvalidRunConstructExtentError as o, MarkdownUnsupportedDocumentKindError as p, MarkdownDiagnosticSeverity as r, MarkdownInvalidUtf8Error as s, MarkdownDiagnostic as t, MarkdownParseError as u };
|
package/dist/emit/html-table.cjs
CHANGED
|
@@ -91,7 +91,15 @@ function emitCellTag(cell, isHeader, context) {
|
|
|
91
91
|
if (styleParts.length > 0) attrs.push(`style="${escapeHtmlAttribute(styleParts.join(";"))}"`);
|
|
92
92
|
return `<${tag}${attrs.length > 0 ? ` ${attrs.join(" ")}` : ""}>${emitCellHtml(cell, context)}</${tag}>`;
|
|
93
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Throws MarkdownTableGridFaultError when `table` breaks the grid rule. Both table renderers run it before writing anything: a pipe row and an HTML row alike state one cell per anchor, so a table whose covered positions hold content or whose rows disagree about the grid has no faithful rendering in either.
|
|
96
|
+
*/
|
|
97
|
+
function assertTableObeysGridRule(table) {
|
|
98
|
+
const fault = (0, document_schema_js.findTableGridFault)(table);
|
|
99
|
+
if (fault !== void 0) throw new require_diagnostics_diagnostics.MarkdownTableGridFaultError(fault);
|
|
100
|
+
}
|
|
94
101
|
function emitHtmlTable(table, context) {
|
|
102
|
+
assertTableObeysGridRule(table);
|
|
95
103
|
return [
|
|
96
104
|
"<table>",
|
|
97
105
|
...(0, document_schema_js.walkTableGrid)(table).map((positions, rowIndex) => {
|
|
@@ -101,5 +109,6 @@ function emitHtmlTable(table, context) {
|
|
|
101
109
|
].join("\n");
|
|
102
110
|
}
|
|
103
111
|
//#endregion
|
|
112
|
+
exports.assertTableObeysGridRule = assertTableObeysGridRule;
|
|
104
113
|
exports.emitHtmlTable = emitHtmlTable;
|
|
105
114
|
exports.tableNeedsHtmlFallback = tableNeedsHtmlFallback;
|
|
@@ -2,6 +2,10 @@ import { TableEmitContext } from "./table.cjs";
|
|
|
2
2
|
import { ContentTable } from "document-schema.js";
|
|
3
3
|
//#region src/emit/html-table.d.ts
|
|
4
4
|
declare function tableNeedsHtmlFallback(table: ContentTable): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Throws MarkdownTableGridFaultError when `table` breaks the grid rule. Both table renderers run it before writing anything: a pipe row and an HTML row alike state one cell per anchor, so a table whose covered positions hold content or whose rows disagree about the grid has no faithful rendering in either.
|
|
7
|
+
*/
|
|
8
|
+
declare function assertTableObeysGridRule(table: ContentTable): void;
|
|
5
9
|
declare function emitHtmlTable(table: ContentTable, context: TableEmitContext): string;
|
|
6
10
|
//#endregion
|
|
7
|
-
export { emitHtmlTable, tableNeedsHtmlFallback };
|
|
11
|
+
export { assertTableObeysGridRule, emitHtmlTable, tableNeedsHtmlFallback };
|
|
@@ -2,6 +2,10 @@ import { TableEmitContext } from "./table.js";
|
|
|
2
2
|
import { ContentTable } from "document-schema.js";
|
|
3
3
|
//#region src/emit/html-table.d.ts
|
|
4
4
|
declare function tableNeedsHtmlFallback(table: ContentTable): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Throws MarkdownTableGridFaultError when `table` breaks the grid rule. Both table renderers run it before writing anything: a pipe row and an HTML row alike state one cell per anchor, so a table whose covered positions hold content or whose rows disagree about the grid has no faithful rendering in either.
|
|
7
|
+
*/
|
|
8
|
+
declare function assertTableObeysGridRule(table: ContentTable): void;
|
|
5
9
|
declare function emitHtmlTable(table: ContentTable, context: TableEmitContext): string;
|
|
6
10
|
//#endregion
|
|
7
|
-
export { emitHtmlTable, tableNeedsHtmlFallback };
|
|
11
|
+
export { assertTableObeysGridRule, emitHtmlTable, tableNeedsHtmlFallback };
|
package/dist/emit/html-table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MarkdownDiagnosticCodes } from "../diagnostics/diagnostics.js";
|
|
1
|
+
import { MarkdownDiagnosticCodes, MarkdownTableGridFaultError } from "../diagnostics/diagnostics.js";
|
|
2
2
|
import "../shared/style-constants.js";
|
|
3
|
-
import { colorToRgbHex, walkTableGrid } from "document-schema.js";
|
|
3
|
+
import { colorToRgbHex, findTableGridFault, walkTableGrid } from "document-schema.js";
|
|
4
4
|
//#region src/emit/html-table.ts
|
|
5
5
|
function escapeHtmlText(text) {
|
|
6
6
|
return text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
@@ -90,7 +90,15 @@ function emitCellTag(cell, isHeader, context) {
|
|
|
90
90
|
if (styleParts.length > 0) attrs.push(`style="${escapeHtmlAttribute(styleParts.join(";"))}"`);
|
|
91
91
|
return `<${tag}${attrs.length > 0 ? ` ${attrs.join(" ")}` : ""}>${emitCellHtml(cell, context)}</${tag}>`;
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Throws MarkdownTableGridFaultError when `table` breaks the grid rule. Both table renderers run it before writing anything: a pipe row and an HTML row alike state one cell per anchor, so a table whose covered positions hold content or whose rows disagree about the grid has no faithful rendering in either.
|
|
95
|
+
*/
|
|
96
|
+
function assertTableObeysGridRule(table) {
|
|
97
|
+
const fault = findTableGridFault(table);
|
|
98
|
+
if (fault !== void 0) throw new MarkdownTableGridFaultError(fault);
|
|
99
|
+
}
|
|
93
100
|
function emitHtmlTable(table, context) {
|
|
101
|
+
assertTableObeysGridRule(table);
|
|
94
102
|
return [
|
|
95
103
|
"<table>",
|
|
96
104
|
...walkTableGrid(table).map((positions, rowIndex) => {
|
|
@@ -100,4 +108,4 @@ function emitHtmlTable(table, context) {
|
|
|
100
108
|
].join("\n");
|
|
101
109
|
}
|
|
102
110
|
//#endregion
|
|
103
|
-
export { emitHtmlTable, tableNeedsHtmlFallback };
|
|
111
|
+
export { assertTableObeysGridRule, emitHtmlTable, tableNeedsHtmlFallback };
|
package/dist/emit/inline.d.cts
CHANGED
|
@@ -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-
|
|
1
|
+
import { a as escapeMarkdownText, i as escapeLinkDestination, n as emitRuns, o as renderLinkTitle, r as emitRunsSingleLine, t as InlineEmitContext } from "../inline-C2130eAp.cjs";
|
|
2
2
|
export { InlineEmitContext, emitRuns, emitRunsSingleLine, escapeLinkDestination, escapeMarkdownText, renderLinkTitle };
|
package/dist/emit/inline.d.ts
CHANGED
|
@@ -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-
|
|
1
|
+
import { a as escapeMarkdownText, i as escapeLinkDestination, n as emitRuns, o as renderLinkTitle, r as emitRunsSingleLine, t as InlineEmitContext } from "../inline-DwGatpGm.js";
|
|
2
2
|
export { InlineEmitContext, emitRuns, emitRunsSingleLine, escapeLinkDestination, escapeMarkdownText, renderLinkTitle };
|
package/dist/emit/table.cjs
CHANGED
|
@@ -67,6 +67,7 @@ function emitTable(table, context) {
|
|
|
67
67
|
});
|
|
68
68
|
return require_emit_html_table.emitHtmlTable(table, context);
|
|
69
69
|
}
|
|
70
|
+
require_emit_html_table.assertTableObeysGridRule(table);
|
|
70
71
|
const [header, ...body] = table.rows;
|
|
71
72
|
if (header === void 0) return "";
|
|
72
73
|
const alignments = header.cells.map((cell) => toMarkdownAlignment(cell.blocks[0]?.kind === "paragraph" ? cell.blocks[0].alignment : void 0));
|
package/dist/emit/table.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
2
|
-
import { t as InlineEmitContext } from "../inline-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.cjs";
|
|
2
|
+
import { t as InlineEmitContext } from "../inline-C2130eAp.cjs";
|
|
3
3
|
import { ContentTable } from "document-schema.js";
|
|
4
4
|
//#region src/emit/table.d.ts
|
|
5
5
|
interface TableEmitContext extends InlineEmitContext {
|
package/dist/emit/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
2
|
-
import { t as InlineEmitContext } from "../inline-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.js";
|
|
2
|
+
import { t as InlineEmitContext } from "../inline-DwGatpGm.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/emit/table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MarkdownDiagnosticCodes } from "../diagnostics/diagnostics.js";
|
|
2
2
|
import { emitRunsSingleLine } from "./inline.js";
|
|
3
3
|
import { emitImage } from "./image.js";
|
|
4
|
-
import { emitHtmlTable, tableNeedsHtmlFallback } from "./html-table.js";
|
|
4
|
+
import { assertTableObeysGridRule, emitHtmlTable, tableNeedsHtmlFallback } from "./html-table.js";
|
|
5
5
|
//#region src/emit/table.ts
|
|
6
6
|
function toMarkdownAlignment(alignment) {
|
|
7
7
|
return alignment === void 0 || alignment === "justify" ? "none" : alignment;
|
|
@@ -66,6 +66,7 @@ function emitTable(table, context) {
|
|
|
66
66
|
});
|
|
67
67
|
return emitHtmlTable(table, context);
|
|
68
68
|
}
|
|
69
|
+
assertTableObeysGridRule(table);
|
|
69
70
|
const [header, ...body] = table.rows;
|
|
70
71
|
if (header === void 0) return "";
|
|
71
72
|
const alignments = header.cells.map((cell) => toMarkdownAlignment(cell.blocks[0]?.kind === "paragraph" ? cell.blocks[0].alignment : void 0));
|
package/dist/index.cjs
CHANGED
|
@@ -17,6 +17,7 @@ exports.MarkdownInvalidRunConstructExtentError = require_diagnostics_diagnostics
|
|
|
17
17
|
exports.MarkdownInvalidUtf8Error = require_diagnostics_diagnostics.MarkdownInvalidUtf8Error;
|
|
18
18
|
exports.MarkdownNestingLimitExceededError = require_diagnostics_diagnostics.MarkdownNestingLimitExceededError;
|
|
19
19
|
exports.MarkdownParseError = require_diagnostics_diagnostics.MarkdownParseError;
|
|
20
|
+
exports.MarkdownTableGridFaultError = require_diagnostics_diagnostics.MarkdownTableGridFaultError;
|
|
20
21
|
exports.MarkdownUnbalancedConstructMarkersError = require_diagnostics_diagnostics.MarkdownUnbalancedConstructMarkersError;
|
|
21
22
|
exports.MarkdownUnsupportedDocumentKindError = require_diagnostics_diagnostics.MarkdownUnsupportedDocumentKindError;
|
|
22
23
|
exports.MarkdownWriteError = require_diagnostics_diagnostics.MarkdownWriteError;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownTableGridFaultError, f as MarkdownUnbalancedConstructMarkersError, h as NOOP_MARKDOWN_DIAGNOSTIC_SINK, i as MarkdownDiagnosticSink, m as MarkdownWriteError, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownUnsupportedDocumentKindError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-Dzg9Nl9H.cjs";
|
|
2
2
|
import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.cjs";
|
|
3
3
|
import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-B6p0Ovgy.cjs";
|
|
4
4
|
import { MarkdownBulletListMarker, MarkdownCodeFenceChar, MarkdownEmphasisMarker, MarkdownHeadingStyle, MarkdownLineEnding, MarkdownOrderedListDelimiter, MarkdownThematicBreakChar, ReadMarkdownOptions, WriteMarkdownOptions, WriteMarkdownStyleOptions } from "./options/options.cjs";
|
|
@@ -6,4 +6,4 @@ import { ReadMarkdownContentResult, ReadMarkdownResult, readMarkdown, readMarkdo
|
|
|
6
6
|
import { writeMarkdown, writeMarkdownContent } from "./write.cjs";
|
|
7
7
|
import { ListNumIdInfo, ListNumIdMintOptions, NumIdMintState, createNumIdMintState, mintListNumId, mintedListType, parseListNumId } from "./shared/list-id.cjs";
|
|
8
8
|
import { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, QUOTE_INDENT_PT, QUOTE_STYLE_ID, headingStyleId, parseHeadingStyleId } from "./shared/style-constants.cjs";
|
|
9
|
-
export { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, type ListNumIdInfo, type ListNumIdMintOptions, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, type MarkdownBulletListMarker, MarkdownBytesSchema, type MarkdownCodeFenceChar, type MarkdownDiagnostic, MarkdownDiagnosticCodes, type MarkdownDiagnosticSeverity, type MarkdownDiagnosticSink, type MarkdownEmphasisMarker, type MarkdownHeadingStyle, type MarkdownImageResolveContext, type MarkdownImageResolver, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, type MarkdownLineEnding, MarkdownNestingLimitExceededError, type MarkdownOrderedListDelimiter, MarkdownParseError, type MarkdownResolvedImageBytes, type MarkdownThematicBreakChar, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK, type NumIdMintState, QUOTE_INDENT_PT, QUOTE_STYLE_ID, type ReadMarkdownContentResult, type ReadMarkdownOptions, type ReadMarkdownResult, type WriteMarkdownOptions, type WriteMarkdownStyleOptions, createNumIdMintState, headingStyleId, markdownCodec, markdownContentCodec, mintListNumId, mintedListType, parseHeadingStyleId, parseListNumId, readMarkdown, readMarkdownContent, writeMarkdown, writeMarkdownContent };
|
|
9
|
+
export { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, type ListNumIdInfo, type ListNumIdMintOptions, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, type MarkdownBulletListMarker, MarkdownBytesSchema, type MarkdownCodeFenceChar, type MarkdownDiagnostic, MarkdownDiagnosticCodes, type MarkdownDiagnosticSeverity, type MarkdownDiagnosticSink, type MarkdownEmphasisMarker, type MarkdownHeadingStyle, type MarkdownImageResolveContext, type MarkdownImageResolver, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, type MarkdownLineEnding, MarkdownNestingLimitExceededError, type MarkdownOrderedListDelimiter, MarkdownParseError, type MarkdownResolvedImageBytes, MarkdownTableGridFaultError, type MarkdownThematicBreakChar, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK, type NumIdMintState, QUOTE_INDENT_PT, QUOTE_STYLE_ID, type ReadMarkdownContentResult, type ReadMarkdownOptions, type ReadMarkdownResult, type WriteMarkdownOptions, type WriteMarkdownStyleOptions, createNumIdMintState, headingStyleId, markdownCodec, markdownContentCodec, mintListNumId, mintedListType, parseHeadingStyleId, parseListNumId, readMarkdown, readMarkdownContent, writeMarkdown, writeMarkdownContent };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownTableGridFaultError, f as MarkdownUnbalancedConstructMarkersError, h as NOOP_MARKDOWN_DIAGNOSTIC_SINK, i as MarkdownDiagnosticSink, m as MarkdownWriteError, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownUnsupportedDocumentKindError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-Dzg9Nl9H.js";
|
|
2
2
|
import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.js";
|
|
3
3
|
import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-gR1vISI0.js";
|
|
4
4
|
import { MarkdownBulletListMarker, MarkdownCodeFenceChar, MarkdownEmphasisMarker, MarkdownHeadingStyle, MarkdownLineEnding, MarkdownOrderedListDelimiter, MarkdownThematicBreakChar, ReadMarkdownOptions, WriteMarkdownOptions, WriteMarkdownStyleOptions } from "./options/options.js";
|
|
@@ -6,4 +6,4 @@ import { ReadMarkdownContentResult, ReadMarkdownResult, readMarkdown, readMarkdo
|
|
|
6
6
|
import { writeMarkdown, writeMarkdownContent } from "./write.js";
|
|
7
7
|
import { ListNumIdInfo, ListNumIdMintOptions, NumIdMintState, createNumIdMintState, mintListNumId, mintedListType, parseListNumId } from "./shared/list-id.js";
|
|
8
8
|
import { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, QUOTE_INDENT_PT, QUOTE_STYLE_ID, headingStyleId, parseHeadingStyleId } from "./shared/style-constants.js";
|
|
9
|
-
export { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, type ListNumIdInfo, type ListNumIdMintOptions, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, type MarkdownBulletListMarker, MarkdownBytesSchema, type MarkdownCodeFenceChar, type MarkdownDiagnostic, MarkdownDiagnosticCodes, type MarkdownDiagnosticSeverity, type MarkdownDiagnosticSink, type MarkdownEmphasisMarker, type MarkdownHeadingStyle, type MarkdownImageResolveContext, type MarkdownImageResolver, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, type MarkdownLineEnding, MarkdownNestingLimitExceededError, type MarkdownOrderedListDelimiter, MarkdownParseError, type MarkdownResolvedImageBytes, type MarkdownThematicBreakChar, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK, type NumIdMintState, QUOTE_INDENT_PT, QUOTE_STYLE_ID, type ReadMarkdownContentResult, type ReadMarkdownOptions, type ReadMarkdownResult, type WriteMarkdownOptions, type WriteMarkdownStyleOptions, createNumIdMintState, headingStyleId, markdownCodec, markdownContentCodec, mintListNumId, mintedListType, parseHeadingStyleId, parseListNumId, readMarkdown, readMarkdownContent, writeMarkdown, writeMarkdownContent };
|
|
9
|
+
export { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, type ListNumIdInfo, type ListNumIdMintOptions, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, type MarkdownBulletListMarker, MarkdownBytesSchema, type MarkdownCodeFenceChar, type MarkdownDiagnostic, MarkdownDiagnosticCodes, type MarkdownDiagnosticSeverity, type MarkdownDiagnosticSink, type MarkdownEmphasisMarker, type MarkdownHeadingStyle, type MarkdownImageResolveContext, type MarkdownImageResolver, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, type MarkdownLineEnding, MarkdownNestingLimitExceededError, type MarkdownOrderedListDelimiter, MarkdownParseError, type MarkdownResolvedImageBytes, MarkdownTableGridFaultError, type MarkdownThematicBreakChar, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK, type NumIdMintState, QUOTE_INDENT_PT, QUOTE_STYLE_ID, type ReadMarkdownContentResult, type ReadMarkdownOptions, type ReadMarkdownResult, type WriteMarkdownOptions, type WriteMarkdownStyleOptions, createNumIdMintState, headingStyleId, markdownCodec, markdownContentCodec, mintListNumId, mintedListType, parseHeadingStyleId, parseListNumId, readMarkdown, readMarkdownContent, writeMarkdown, writeMarkdownContent };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MarkdownDiagnosticCodes, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK } from "./diagnostics/diagnostics.js";
|
|
1
|
+
import { MarkdownDiagnosticCodes, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownParseError, MarkdownTableGridFaultError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK } from "./diagnostics/diagnostics.js";
|
|
2
2
|
import { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, QUOTE_INDENT_PT, QUOTE_STYLE_ID, headingStyleId, parseHeadingStyleId } from "./shared/style-constants.js";
|
|
3
3
|
import { createNumIdMintState, mintListNumId, mintedListType, parseListNumId } from "./shared/list-id.js";
|
|
4
4
|
import { readMarkdown, readMarkdownContent } from "./read.js";
|
|
5
5
|
import { writeMarkdown, writeMarkdownContent } from "./write.js";
|
|
6
6
|
import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.js";
|
|
7
|
-
export { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, MarkdownBytesSchema, MarkdownDiagnosticCodes, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK, QUOTE_INDENT_PT, QUOTE_STYLE_ID, createNumIdMintState, headingStyleId, markdownCodec, markdownContentCodec, mintListNumId, mintedListType, parseHeadingStyleId, parseListNumId, readMarkdown, readMarkdownContent, writeMarkdown, writeMarkdownContent };
|
|
7
|
+
export { CODE_BLOCK_STYLE_ID, HORIZONTAL_RULE_STYLE_ID, HTML_PREFORMATTED_STYLE_ID, MAX_HEADING_STYLE_LEVEL, MONOSPACE_FONT_FAMILY, MarkdownBytesSchema, MarkdownDiagnosticCodes, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownParseError, MarkdownTableGridFaultError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK, QUOTE_INDENT_PT, QUOTE_STYLE_ID, createNumIdMintState, headingStyleId, markdownCodec, markdownContentCodec, mintListNumId, mintedListType, parseHeadingStyleId, parseListNumId, readMarkdown, readMarkdownContent, writeMarkdown, writeMarkdownContent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "./diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "./diagnostics-Dzg9Nl9H.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-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "./diagnostics-Dzg9Nl9H.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-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.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-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.js";
|
|
2
2
|
import { LayoutMetadata } from "document-schema.js";
|
|
3
3
|
//#region src/lower/front-matter.d.ts
|
|
4
4
|
interface FrontMatterResult {
|
package/dist/lower/inline.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as MarkdownInlineNode } from "../ast-CNfTgS0N.cjs";
|
|
2
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
2
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.cjs";
|
|
3
3
|
import { ContentRun, RunConstructExtent } from "document-schema.js";
|
|
4
4
|
//#region src/lower/inline.d.ts
|
|
5
5
|
interface InlineLowerContext {
|
package/dist/lower/inline.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as MarkdownInlineNode } from "../ast-CNfTgS0N.js";
|
|
2
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
2
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.js";
|
|
3
3
|
import { ContentRun, RunConstructExtent } from "document-schema.js";
|
|
4
4
|
//#region src/lower/inline.d.ts
|
|
5
5
|
interface InlineLowerContext {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.cjs";
|
|
2
2
|
import { n as MarkdownImageResolver } from "../image-B6p0Ovgy.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-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-Dzg9Nl9H.js";
|
|
2
2
|
import { n as MarkdownImageResolver } from "../image-gR1vISI0.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-
|
|
1
|
+
import { t as MarkdownDiagnostic } from "./diagnostics-Dzg9Nl9H.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-
|
|
1
|
+
import { t as MarkdownDiagnostic } from "./diagnostics-Dzg9Nl9H.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": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Hand-written CommonMark+GFM <-> DocumentTree codec, built on document-schema.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"packageManager": "pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c",
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"byte-codec": "1.7.0",
|
|
87
|
-
"document-schema.js": "7.
|
|
87
|
+
"document-schema.js": "7.13.0",
|
|
88
88
|
"zod": "4.4.3"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|