markdown-codec 6.7.4 → 6.7.5
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 +2 -1
- package/dist/block/definitions.cjs +1 -5
- package/dist/block/definitions.js +1 -5
- package/dist/block/line.cjs +2 -2
- package/dist/block/line.js +2 -2
- package/dist/block/list.cjs +7 -14
- package/dist/block/list.js +7 -14
- package/dist/block/table.cjs +3 -4
- package/dist/block/table.js +3 -4
- package/dist/codec.d.cts +9 -9
- package/dist/codec.d.ts +9 -9
- package/dist/emit/emit.cjs +35 -37
- package/dist/emit/emit.js +35 -37
- package/dist/emit/table.cjs +2 -2
- package/dist/emit/table.js +2 -2
- package/dist/html/html.cjs +0 -2
- package/dist/html/html.js +0 -2
- package/dist/html/render.cjs +3 -11
- package/dist/html/render.js +3 -11
- package/dist/image/image.cjs +0 -49
- package/dist/image/image.d.cts +2 -2
- package/dist/image/image.d.ts +2 -2
- package/dist/image/image.js +1 -48
- package/dist/{image-BtmTG4_a.d.cts → image-83yql5ES.d.cts} +1 -3
- package/dist/{image-BtmTG4_a.d.ts → image-83yql5ES.d.ts} +1 -3
- package/dist/{image-B5L0HpAJ.d.cts → image-B6p0Ovgy.d.cts} +1 -1
- package/dist/{image-C390OIB3.d.ts → image-gR1vISI0.d.ts} +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/inline/chars.cjs +3 -6
- package/dist/inline/chars.js +3 -6
- package/dist/inline/delimiter.cjs +5 -12
- package/dist/inline/delimiter.d.cts +2 -1
- package/dist/inline/delimiter.d.ts +2 -1
- package/dist/inline/delimiter.js +5 -13
- package/dist/inline/entity.cjs +6 -10
- package/dist/inline/entity.js +6 -10
- package/dist/inline/link.cjs +4 -5
- package/dist/inline/link.js +4 -5
- package/dist/lower/front-matter.cjs +4 -8
- package/dist/lower/front-matter.js +4 -8
- package/dist/lower/image.cjs +3 -2
- package/dist/lower/image.d.cts +1 -1
- package/dist/lower/image.d.ts +1 -1
- package/dist/lower/image.js +2 -1
- package/dist/lower/inline.cjs +0 -2
- package/dist/lower/inline.js +0 -2
- package/dist/options/options.d.cts +1 -1
- package/dist/options/options.d.ts +1 -1
- package/dist/read.cjs +2 -2
- package/dist/read.js +2 -2
- package/dist/scan/scan.cjs +1 -3
- package/dist/scan/scan.js +1 -3
- package/dist/shared/list-id.cjs +1 -1
- package/dist/shared/list-id.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ graph TD
|
|
|
25
25
|
schema --> mdcodec
|
|
26
26
|
schema --> documents
|
|
27
27
|
bytecodec --> pdfcodec
|
|
28
|
+
bytecodec --> mdcodec
|
|
28
29
|
ooxml --> documents
|
|
29
30
|
odf --> documents
|
|
30
31
|
pdfcodec --> documents
|
|
@@ -143,7 +144,7 @@ Modelled on `pdf-codec`'s own layering, aimed at CommonMark+GFM instead of PDF:
|
|
|
143
144
|
- **`src/block/`** — CommonMark block-structure algorithm (open-block stack, continuation matching): paragraphs, headings, code blocks, block quotes, lists (incl. GFM task-list-item), thematic breaks, link references, footnote definitions, GFM tables.
|
|
144
145
|
- **`src/inline/`** — emphasis, code spans, links, autolinks, raw HTML, GFM strikethrough, footnote references, line breaks. `link.ts` and `footnote.ts` hold the label grammars the block phase shares.
|
|
145
146
|
- **`src/html/`** — raw HTML recognition (bounded rules, not a general parser) plus `render.ts` (conformance oracle; internal only). `html-table.ts` is the one exception to "never parsed as markup": a block-level HTML that is, in full, one well-formed `<table>` recognises straight to a real `ContentTable` instead of opaque text — see [HTML-table fallback](#html-table-fallback).
|
|
146
|
-
- **`src/image/`** — PNG/JPEG dimension reader
|
|
147
|
+
- **`src/image/`** — PNG/JPEG dimension reader, shared by `src/lower/` and `src/emit/`. The base64 those paths encode and decode a `data:` URI's payload with comes from `byte-codec`.
|
|
147
148
|
- **`src/shared/`** — string-shape conventions `src/lower`/`src/emit` agree on (`style-constants.ts`, `list-id.ts`'s opaque `numId`). Re-exported so `documents.js`'s `MarkdownEditor` reuses the identical grammar.
|
|
148
149
|
- **`src/lower/`** — AST → `ContentDocument` lowering (thin adapter, not a second parser); top-of-file table maps each construct to its diagnostic gap.
|
|
149
150
|
- **`src/emit/`** — `ContentDocument` → markdown text emission, the structural inverse of `src/lower`. `html-table.ts` is `src/html/html-table.ts`'s own write-side counterpart.
|
|
@@ -2,10 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_diagnostics_diagnostics = require("../diagnostics/diagnostics.cjs");
|
|
3
3
|
const require_inline_link = require("../inline/link.cjs");
|
|
4
4
|
//#region src/block/definitions.ts
|
|
5
|
-
const MIN_DEFINITION_LABEL_LENGTH = 3;
|
|
6
5
|
function parseDefinition(content, start) {
|
|
7
6
|
const labelLength = require_inline_link.matchLinkLabel(content, start);
|
|
8
|
-
if (labelLength < MIN_DEFINITION_LABEL_LENGTH) return;
|
|
9
7
|
const label = require_inline_link.normalizeLinkLabel(content.slice(start, start + labelLength));
|
|
10
8
|
if (label.length === 0) return;
|
|
11
9
|
let cursor = start + labelLength;
|
|
@@ -51,9 +49,7 @@ function extractDefinitions(content, references, sink = require_diagnostics_diag
|
|
|
51
49
|
}
|
|
52
50
|
}
|
|
53
51
|
function countNewlines(content, upTo) {
|
|
54
|
-
|
|
55
|
-
for (let index = 0; index < upTo && index < content.length; index += 1) if (content.charAt(index) === "\n") count += 1;
|
|
56
|
-
return count;
|
|
52
|
+
return content.slice(0, upTo).split("\n").length - 1;
|
|
57
53
|
}
|
|
58
54
|
//#endregion
|
|
59
55
|
exports.extractDefinitions = extractDefinitions;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { MarkdownDiagnosticCodes, NOOP_MARKDOWN_DIAGNOSTIC_SINK } from "../diagnostics/diagnostics.js";
|
|
2
2
|
import { isBlankRemainderOfLine, matchLinkLabel, normalizeLinkLabel, parseLinkDestination, parseLinkTitle, skipInlineWhitespace } from "../inline/link.js";
|
|
3
3
|
//#region src/block/definitions.ts
|
|
4
|
-
const MIN_DEFINITION_LABEL_LENGTH = 3;
|
|
5
4
|
function parseDefinition(content, start) {
|
|
6
5
|
const labelLength = matchLinkLabel(content, start);
|
|
7
|
-
if (labelLength < MIN_DEFINITION_LABEL_LENGTH) return;
|
|
8
6
|
const label = normalizeLinkLabel(content.slice(start, start + labelLength));
|
|
9
7
|
if (label.length === 0) return;
|
|
10
8
|
let cursor = start + labelLength;
|
|
@@ -50,9 +48,7 @@ function extractDefinitions(content, references, sink = NOOP_MARKDOWN_DIAGNOSTIC
|
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
function countNewlines(content, upTo) {
|
|
53
|
-
|
|
54
|
-
for (let index = 0; index < upTo && index < content.length; index += 1) if (content.charAt(index) === "\n") count += 1;
|
|
55
|
-
return count;
|
|
51
|
+
return content.slice(0, upTo).split("\n").length - 1;
|
|
56
52
|
}
|
|
57
53
|
//#endregion
|
|
58
54
|
export { extractDefinitions };
|
package/dist/block/line.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var LineCursor = class {
|
|
|
7
7
|
cursor;
|
|
8
8
|
nextNonspaceMark;
|
|
9
9
|
nextNonspaceColumn = 0;
|
|
10
|
-
lineIsBlank
|
|
10
|
+
lineIsBlank;
|
|
11
11
|
constructor(text) {
|
|
12
12
|
this.text = text;
|
|
13
13
|
this.cursor = new require_scan_scan.MarkdownScanCursor(text);
|
|
@@ -51,7 +51,7 @@ var LineCursor = class {
|
|
|
51
51
|
this.cursor.reset(this.nextNonspaceMark);
|
|
52
52
|
}
|
|
53
53
|
advance(columns) {
|
|
54
|
-
for (let remaining = columns; remaining > 0; remaining -= 1)
|
|
54
|
+
for (let remaining = columns; remaining > 0; remaining -= 1) this.cursor.next();
|
|
55
55
|
}
|
|
56
56
|
advanceToEndOfLine() {
|
|
57
57
|
while (this.cursor.next() !== void 0);
|
package/dist/block/line.js
CHANGED
|
@@ -6,7 +6,7 @@ var LineCursor = class {
|
|
|
6
6
|
cursor;
|
|
7
7
|
nextNonspaceMark;
|
|
8
8
|
nextNonspaceColumn = 0;
|
|
9
|
-
lineIsBlank
|
|
9
|
+
lineIsBlank;
|
|
10
10
|
constructor(text) {
|
|
11
11
|
this.text = text;
|
|
12
12
|
this.cursor = new MarkdownScanCursor(text);
|
|
@@ -50,7 +50,7 @@ var LineCursor = class {
|
|
|
50
50
|
this.cursor.reset(this.nextNonspaceMark);
|
|
51
51
|
}
|
|
52
52
|
advance(columns) {
|
|
53
|
-
for (let remaining = columns; remaining > 0; remaining -= 1)
|
|
53
|
+
for (let remaining = columns; remaining > 0; remaining -= 1) this.cursor.next();
|
|
54
54
|
}
|
|
55
55
|
advanceToEndOfLine() {
|
|
56
56
|
while (this.cursor.next() !== void 0);
|
package/dist/block/list.cjs
CHANGED
|
@@ -5,17 +5,10 @@ const BULLET_MARKER_PATTERN = /^[*+-]/;
|
|
|
5
5
|
const ORDERED_MARKER_PATTERN = /^(\d{1,9})([.)])/;
|
|
6
6
|
const NON_SPACE_PATTERN = /[^ \t\f\v\r\n]/;
|
|
7
7
|
const INTERRUPTING_ORDERED_START = 1;
|
|
8
|
-
function isBulletMarker(char) {
|
|
9
|
-
return char === "-" || char === "*" || char === "+";
|
|
10
|
-
}
|
|
11
|
-
function isOrderedDelimiter(char) {
|
|
12
|
-
return char === "." || char === ")";
|
|
13
|
-
}
|
|
14
8
|
function matchMarker(rest, indent, containerIsParagraph) {
|
|
15
9
|
const bullet = BULLET_MARKER_PATTERN.exec(rest);
|
|
16
10
|
if (bullet !== null) {
|
|
17
11
|
const char = bullet[0];
|
|
18
|
-
if (!isBulletMarker(char)) return;
|
|
19
12
|
return {
|
|
20
13
|
length: bullet[0].length,
|
|
21
14
|
data: {
|
|
@@ -26,9 +19,9 @@ function matchMarker(rest, indent, containerIsParagraph) {
|
|
|
26
19
|
};
|
|
27
20
|
}
|
|
28
21
|
const ordered = ORDERED_MARKER_PATTERN.exec(rest);
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
22
|
+
if (ordered === null) return;
|
|
23
|
+
const digits = ordered[1];
|
|
24
|
+
const delimiter = ordered[2];
|
|
32
25
|
const start = Number.parseInt(digits, 10);
|
|
33
26
|
if (containerIsParagraph && start !== INTERRUPTING_ORDERED_START) return;
|
|
34
27
|
return {
|
|
@@ -55,12 +48,12 @@ function parseListMarker(line, containerIsParagraph) {
|
|
|
55
48
|
const afterMarkerColumn = line.column;
|
|
56
49
|
do
|
|
57
50
|
line.advance(1);
|
|
58
|
-
while (line.
|
|
51
|
+
while (line.peek() === " ");
|
|
59
52
|
const followingSpaces = line.column - afterMarkerColumn;
|
|
60
53
|
const startsBlank = line.atEnd;
|
|
61
|
-
if (followingSpaces > 4 ||
|
|
54
|
+
if (followingSpaces > 4 || startsBlank) {
|
|
62
55
|
line.reset(afterMarkerMark);
|
|
63
|
-
|
|
56
|
+
line.advance(1);
|
|
64
57
|
return {
|
|
65
58
|
...match.data,
|
|
66
59
|
padding: match.length + 1
|
|
@@ -72,7 +65,7 @@ function parseListMarker(line, containerIsParagraph) {
|
|
|
72
65
|
};
|
|
73
66
|
}
|
|
74
67
|
function listsMatch(a, b) {
|
|
75
|
-
return a.
|
|
68
|
+
return a.delimiter === b.delimiter && a.bulletChar === b.bulletChar;
|
|
76
69
|
}
|
|
77
70
|
function endsWithBlankLine(block) {
|
|
78
71
|
let current = block;
|
package/dist/block/list.js
CHANGED
|
@@ -4,17 +4,10 @@ const BULLET_MARKER_PATTERN = /^[*+-]/;
|
|
|
4
4
|
const ORDERED_MARKER_PATTERN = /^(\d{1,9})([.)])/;
|
|
5
5
|
const NON_SPACE_PATTERN = /[^ \t\f\v\r\n]/;
|
|
6
6
|
const INTERRUPTING_ORDERED_START = 1;
|
|
7
|
-
function isBulletMarker(char) {
|
|
8
|
-
return char === "-" || char === "*" || char === "+";
|
|
9
|
-
}
|
|
10
|
-
function isOrderedDelimiter(char) {
|
|
11
|
-
return char === "." || char === ")";
|
|
12
|
-
}
|
|
13
7
|
function matchMarker(rest, indent, containerIsParagraph) {
|
|
14
8
|
const bullet = BULLET_MARKER_PATTERN.exec(rest);
|
|
15
9
|
if (bullet !== null) {
|
|
16
10
|
const char = bullet[0];
|
|
17
|
-
if (!isBulletMarker(char)) return;
|
|
18
11
|
return {
|
|
19
12
|
length: bullet[0].length,
|
|
20
13
|
data: {
|
|
@@ -25,9 +18,9 @@ function matchMarker(rest, indent, containerIsParagraph) {
|
|
|
25
18
|
};
|
|
26
19
|
}
|
|
27
20
|
const ordered = ORDERED_MARKER_PATTERN.exec(rest);
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
21
|
+
if (ordered === null) return;
|
|
22
|
+
const digits = ordered[1];
|
|
23
|
+
const delimiter = ordered[2];
|
|
31
24
|
const start = Number.parseInt(digits, 10);
|
|
32
25
|
if (containerIsParagraph && start !== INTERRUPTING_ORDERED_START) return;
|
|
33
26
|
return {
|
|
@@ -54,12 +47,12 @@ function parseListMarker(line, containerIsParagraph) {
|
|
|
54
47
|
const afterMarkerColumn = line.column;
|
|
55
48
|
do
|
|
56
49
|
line.advance(1);
|
|
57
|
-
while (line.
|
|
50
|
+
while (line.peek() === " ");
|
|
58
51
|
const followingSpaces = line.column - afterMarkerColumn;
|
|
59
52
|
const startsBlank = line.atEnd;
|
|
60
|
-
if (followingSpaces > 4 ||
|
|
53
|
+
if (followingSpaces > 4 || startsBlank) {
|
|
61
54
|
line.reset(afterMarkerMark);
|
|
62
|
-
|
|
55
|
+
line.advance(1);
|
|
63
56
|
return {
|
|
64
57
|
...match.data,
|
|
65
58
|
padding: match.length + 1
|
|
@@ -71,7 +64,7 @@ function parseListMarker(line, containerIsParagraph) {
|
|
|
71
64
|
};
|
|
72
65
|
}
|
|
73
66
|
function listsMatch(a, b) {
|
|
74
|
-
return a.
|
|
67
|
+
return a.delimiter === b.delimiter && a.bulletChar === b.bulletChar;
|
|
75
68
|
}
|
|
76
69
|
function endsWithBlankLine(block) {
|
|
77
70
|
let current = block;
|
package/dist/block/table.cjs
CHANGED
|
@@ -8,9 +8,9 @@ function splitTableRow(line) {
|
|
|
8
8
|
const cells = [];
|
|
9
9
|
let current = "";
|
|
10
10
|
let index = 0;
|
|
11
|
-
while (index
|
|
11
|
+
while (text.charAt(index) !== "") {
|
|
12
12
|
const char = text.charAt(index);
|
|
13
|
-
if (char === "\\"
|
|
13
|
+
if (char === "\\") {
|
|
14
14
|
const escaped = text.charAt(index + 1);
|
|
15
15
|
current += escaped === "|" ? escaped : char + escaped;
|
|
16
16
|
index += 2;
|
|
@@ -31,7 +31,7 @@ function splitTableRow(line) {
|
|
|
31
31
|
function endsWithUnescapedPipe(text) {
|
|
32
32
|
if (!text.endsWith("|")) return false;
|
|
33
33
|
let backslashes = 0;
|
|
34
|
-
while (
|
|
34
|
+
while (text.charAt(text.length - 2 - backslashes) === "\\") backslashes += 1;
|
|
35
35
|
return backslashes % 2 === 0;
|
|
36
36
|
}
|
|
37
37
|
function alignmentOf(cell) {
|
|
@@ -45,7 +45,6 @@ function alignmentOf(cell) {
|
|
|
45
45
|
function parseTableDelimiterRow(line) {
|
|
46
46
|
if (!line.includes("|")) return;
|
|
47
47
|
const cells = splitTableRow(line);
|
|
48
|
-
if (cells.length === 0) return;
|
|
49
48
|
const alignments = [];
|
|
50
49
|
for (const cell of cells) {
|
|
51
50
|
if (!DELIMITER_CELL_PATTERN.test(cell)) return;
|
package/dist/block/table.js
CHANGED
|
@@ -7,9 +7,9 @@ function splitTableRow(line) {
|
|
|
7
7
|
const cells = [];
|
|
8
8
|
let current = "";
|
|
9
9
|
let index = 0;
|
|
10
|
-
while (index
|
|
10
|
+
while (text.charAt(index) !== "") {
|
|
11
11
|
const char = text.charAt(index);
|
|
12
|
-
if (char === "\\"
|
|
12
|
+
if (char === "\\") {
|
|
13
13
|
const escaped = text.charAt(index + 1);
|
|
14
14
|
current += escaped === "|" ? escaped : char + escaped;
|
|
15
15
|
index += 2;
|
|
@@ -30,7 +30,7 @@ function splitTableRow(line) {
|
|
|
30
30
|
function endsWithUnescapedPipe(text) {
|
|
31
31
|
if (!text.endsWith("|")) return false;
|
|
32
32
|
let backslashes = 0;
|
|
33
|
-
while (
|
|
33
|
+
while (text.charAt(text.length - 2 - backslashes) === "\\") backslashes += 1;
|
|
34
34
|
return backslashes % 2 === 0;
|
|
35
35
|
}
|
|
36
36
|
function alignmentOf(cell) {
|
|
@@ -44,7 +44,6 @@ function alignmentOf(cell) {
|
|
|
44
44
|
function parseTableDelimiterRow(line) {
|
|
45
45
|
if (!line.includes("|")) return;
|
|
46
46
|
const cells = splitTableRow(line);
|
|
47
|
-
if (cells.length === 0) return;
|
|
48
47
|
const alignments = [];
|
|
49
48
|
for (const cell of cells) {
|
|
50
49
|
if (!DELIMITER_CELL_PATTERN.test(cell)) return;
|
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<{
|
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -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,9 +1816,9 @@ 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
|
-
time: "time";
|
|
1820
1819
|
date: "date";
|
|
1821
1820
|
custom: "custom";
|
|
1821
|
+
time: "time";
|
|
1822
1822
|
decimal: "decimal";
|
|
1823
1823
|
list: "list";
|
|
1824
1824
|
whole: "whole";
|
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<{
|
|
@@ -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<{
|
|
@@ -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<{
|
|
@@ -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,9 +1816,9 @@ 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
|
-
time: "time";
|
|
1820
1819
|
date: "date";
|
|
1821
1820
|
custom: "custom";
|
|
1821
|
+
time: "time";
|
|
1822
1822
|
decimal: "decimal";
|
|
1823
1823
|
list: "list";
|
|
1824
1824
|
whole: "whole";
|