markdown-codec 6.0.0 → 6.1.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 +25 -24
- package/dist/ast/ast.d.cts +1 -1
- package/dist/ast/ast.d.ts +1 -1
- package/dist/{ast-8XCbjRQT.d.cts → ast-CNfTgS0N.d.cts} +35 -35
- package/dist/{ast-8XCbjRQT.d.ts → ast-CNfTgS0N.d.ts} +35 -35
- package/dist/block/block.d.cts +3 -3
- package/dist/block/block.d.ts +3 -3
- package/dist/block/definitions.d.cts +1 -1
- package/dist/block/definitions.d.ts +1 -1
- package/dist/block/node.d.cts +4 -4
- package/dist/block/node.d.ts +4 -4
- package/dist/block/table.d.cts +1 -1
- package/dist/block/table.d.ts +1 -1
- package/dist/defaults/defaults.d.cts +1 -1
- package/dist/defaults/defaults.d.ts +1 -1
- package/dist/diagnostics/diagnostics.d.cts +1 -1
- package/dist/diagnostics/diagnostics.d.ts +1 -1
- package/dist/{diagnostics-CkcSYZf1.d.cts → diagnostics-CH-xa2-s.d.cts} +5 -5
- package/dist/{diagnostics-CkcSYZf1.d.ts → diagnostics-CH-xa2-s.d.ts} +5 -5
- package/dist/emit/emit.cjs +1 -1
- package/dist/emit/emit.js +1 -1
- package/dist/emit/inline.cjs +2 -2
- package/dist/emit/inline.d.cts +3 -3
- package/dist/emit/inline.d.ts +3 -3
- package/dist/emit/inline.js +2 -2
- package/dist/emit/table.d.cts +1 -1
- package/dist/emit/table.d.ts +1 -1
- package/dist/html/render.d.cts +1 -1
- package/dist/html/render.d.ts +1 -1
- package/dist/image/image.cjs +4 -4
- package/dist/image/image.d.cts +1 -1
- package/dist/image/image.d.ts +1 -1
- package/dist/image/image.js +4 -4
- package/dist/{image-C4KYmz_L.d.cts → image-B5L0HpAJ.d.cts} +1 -1
- package/dist/{image-DescdRgq.d.cts → image-BtmTG4_a.d.cts} +1 -1
- package/dist/{image-DescdRgq.d.ts → image-BtmTG4_a.d.ts} +1 -1
- package/dist/{image-Cm3hT5PS.d.ts → image-C390OIB3.d.ts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/inline/delimiter.d.cts +2 -2
- package/dist/inline/delimiter.d.ts +2 -2
- package/dist/inline/inline.d.cts +1 -1
- package/dist/inline/inline.d.ts +1 -1
- package/dist/inline/node.d.cts +2 -2
- package/dist/inline/node.d.ts +2 -2
- package/dist/{inline-CoS1JzxI.d.cts → inline-CnO86zMw.d.cts} +1 -1
- package/dist/{inline-OGXVE6hB.d.ts → inline-DItZ-VVw.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/image.d.cts +1 -1
- package/dist/lower/image.d.ts +1 -1
- package/dist/lower/inline.d.cts +3 -3
- package/dist/lower/inline.d.ts +3 -3
- package/dist/lower/table.d.cts +1 -1
- package/dist/lower/table.d.ts +1 -1
- package/dist/options/options.d.cts +10 -10
- package/dist/options/options.d.ts +10 -10
- package/dist/read.d.cts +1 -1
- package/dist/read.d.ts +1 -1
- package/dist/scan/entity-table.cjs +2125 -2125
- package/dist/scan/entity-table.js +2125 -2125
- package/dist/shared/list-id.d.cts +3 -3
- package/dist/shared/list-id.d.ts +3 -3
- package/package.json +2 -11
package/dist/block/table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as MarkdownTableAlignment } from "../ast-
|
|
1
|
+
import { N as MarkdownTableAlignment } from "../ast-CNfTgS0N.js";
|
|
2
2
|
//#region src/block/table.d.ts
|
|
3
3
|
declare function splitTableRow(line: string): string[];
|
|
4
4
|
declare function parseTableDelimiterRow(line: string): MarkdownTableAlignment[] | undefined;
|
|
@@ -3,7 +3,7 @@ import { Margins } from "document-schema.js";
|
|
|
3
3
|
//#region src/defaults/defaults.d.ts
|
|
4
4
|
declare const DEFAULT_MARGINS: Margins;
|
|
5
5
|
declare const DEFAULT_MAX_BLOCK_NESTING = 250;
|
|
6
|
-
declare const DEFAULT_RAW_HTML_MODE:
|
|
6
|
+
declare const DEFAULT_RAW_HTML_MODE: "preserve" | "drop";
|
|
7
7
|
declare const DEFAULT_FRONT_MATTER = false;
|
|
8
8
|
declare const DEFAULT_HEADING_STYLE: MarkdownHeadingStyle;
|
|
9
9
|
declare const DEFAULT_BULLET_LIST_MARKER: MarkdownBulletListMarker;
|
|
@@ -3,7 +3,7 @@ import { Margins } from "document-schema.js";
|
|
|
3
3
|
//#region src/defaults/defaults.d.ts
|
|
4
4
|
declare const DEFAULT_MARGINS: Margins;
|
|
5
5
|
declare const DEFAULT_MAX_BLOCK_NESTING = 250;
|
|
6
|
-
declare const DEFAULT_RAW_HTML_MODE:
|
|
6
|
+
declare const DEFAULT_RAW_HTML_MODE: "preserve" | "drop";
|
|
7
7
|
declare const DEFAULT_FRONT_MATTER = false;
|
|
8
8
|
declare const DEFAULT_HEADING_STYLE: MarkdownHeadingStyle;
|
|
9
9
|
declare const DEFAULT_BULLET_LIST_MARKER: MarkdownBulletListMarker;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-CH-xa2-s.cjs";
|
|
2
2
|
export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, l as MarkdownPackageFlattenError, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "../diagnostics-CH-xa2-s.js";
|
|
2
2
|
export { MarkdownDiagnostic, MarkdownDiagnosticCodes, MarkdownDiagnosticSeverity, MarkdownDiagnosticSink, MarkdownInputTooLargeError, MarkdownInvalidRunConstructExtentError, MarkdownInvalidUtf8Error, MarkdownNestingLimitExceededError, MarkdownPackageFlattenError, MarkdownParseError, MarkdownUnbalancedConstructMarkersError, MarkdownUnsupportedDocumentKindError, MarkdownWriteError, NOOP_MARKDOWN_DIAGNOSTIC_SINK };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/diagnostics/diagnostics.d.ts
|
|
2
|
-
type MarkdownDiagnosticSeverity =
|
|
2
|
+
type MarkdownDiagnosticSeverity = "info" | "warning";
|
|
3
3
|
interface MarkdownDiagnostic {
|
|
4
4
|
readonly code: string;
|
|
5
5
|
readonly severity: MarkdownDiagnosticSeverity;
|
|
@@ -58,14 +58,14 @@ declare class MarkdownWriteError extends Error {
|
|
|
58
58
|
constructor(code: string, message: string);
|
|
59
59
|
}
|
|
60
60
|
declare class MarkdownUnbalancedConstructMarkersError extends MarkdownWriteError {
|
|
61
|
-
readonly imbalanceKind:
|
|
61
|
+
readonly imbalanceKind: "unmatchedEnd" | "unclosedStart";
|
|
62
62
|
readonly blockIndex: number;
|
|
63
|
-
constructor(imbalanceKind:
|
|
63
|
+
constructor(imbalanceKind: "unmatchedEnd" | "unclosedStart", blockIndex: number);
|
|
64
64
|
}
|
|
65
65
|
declare class MarkdownInvalidRunConstructExtentError extends MarkdownWriteError {
|
|
66
|
-
readonly faultKind:
|
|
66
|
+
readonly faultKind: "invertedRange" | "beyondRuns";
|
|
67
67
|
readonly entryIndex: number;
|
|
68
|
-
constructor(faultKind:
|
|
68
|
+
constructor(faultKind: "invertedRange" | "beyondRuns", entryIndex: number);
|
|
69
69
|
}
|
|
70
70
|
declare class MarkdownUnsupportedDocumentKindError extends MarkdownWriteError {
|
|
71
71
|
readonly kind: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/diagnostics/diagnostics.d.ts
|
|
2
|
-
type MarkdownDiagnosticSeverity =
|
|
2
|
+
type MarkdownDiagnosticSeverity = "info" | "warning";
|
|
3
3
|
interface MarkdownDiagnostic {
|
|
4
4
|
readonly code: string;
|
|
5
5
|
readonly severity: MarkdownDiagnosticSeverity;
|
|
@@ -58,14 +58,14 @@ declare class MarkdownWriteError extends Error {
|
|
|
58
58
|
constructor(code: string, message: string);
|
|
59
59
|
}
|
|
60
60
|
declare class MarkdownUnbalancedConstructMarkersError extends MarkdownWriteError {
|
|
61
|
-
readonly imbalanceKind:
|
|
61
|
+
readonly imbalanceKind: "unmatchedEnd" | "unclosedStart";
|
|
62
62
|
readonly blockIndex: number;
|
|
63
|
-
constructor(imbalanceKind:
|
|
63
|
+
constructor(imbalanceKind: "unmatchedEnd" | "unclosedStart", blockIndex: number);
|
|
64
64
|
}
|
|
65
65
|
declare class MarkdownInvalidRunConstructExtentError extends MarkdownWriteError {
|
|
66
|
-
readonly faultKind:
|
|
66
|
+
readonly faultKind: "invertedRange" | "beyondRuns";
|
|
67
67
|
readonly entryIndex: number;
|
|
68
|
-
constructor(faultKind:
|
|
68
|
+
constructor(faultKind: "invertedRange" | "beyondRuns", entryIndex: number);
|
|
69
69
|
}
|
|
70
70
|
declare class MarkdownUnsupportedDocumentKindError extends MarkdownWriteError {
|
|
71
71
|
readonly kind: string;
|
package/dist/emit/emit.cjs
CHANGED
|
@@ -192,7 +192,7 @@ function renderListRegion(items, context) {
|
|
|
192
192
|
let ownEnd = index + 1;
|
|
193
193
|
if (itemId !== void 0) while (ownEnd < items.length) {
|
|
194
194
|
const candidate = items[ownEnd];
|
|
195
|
-
if (candidate?.list?.level !== level || candidate.list
|
|
195
|
+
if (candidate?.list?.level !== level || candidate.list.itemId !== itemId) break;
|
|
196
196
|
ownEnd += 1;
|
|
197
197
|
}
|
|
198
198
|
const ownBlocks = items.slice(index, ownEnd);
|
package/dist/emit/emit.js
CHANGED
|
@@ -191,7 +191,7 @@ function renderListRegion(items, context) {
|
|
|
191
191
|
let ownEnd = index + 1;
|
|
192
192
|
if (itemId !== void 0) while (ownEnd < items.length) {
|
|
193
193
|
const candidate = items[ownEnd];
|
|
194
|
-
if (candidate?.list?.level !== level || candidate.list
|
|
194
|
+
if (candidate?.list?.level !== level || candidate.list.itemId !== itemId) break;
|
|
195
195
|
ownEnd += 1;
|
|
196
196
|
}
|
|
197
197
|
const ownBlocks = items.slice(index, ownEnd);
|
package/dist/emit/inline.cjs
CHANGED
|
@@ -158,7 +158,7 @@ function linkTitleCovering(constructs, start, end) {
|
|
|
158
158
|
}
|
|
159
159
|
return tightest?.descriptor.kind === "link" ? tightest.descriptor.title : void 0;
|
|
160
160
|
}
|
|
161
|
-
function emitRuns(runs, context, constructs
|
|
161
|
+
function emitRuns(runs, context, constructs) {
|
|
162
162
|
let out = "";
|
|
163
163
|
let index = 0;
|
|
164
164
|
while (index < runs.length) {
|
|
@@ -190,7 +190,7 @@ function emitRuns(runs, context, constructs = void 0) {
|
|
|
190
190
|
}
|
|
191
191
|
return out;
|
|
192
192
|
}
|
|
193
|
-
function emitRunsSingleLine(runs, context, constructs
|
|
193
|
+
function emitRunsSingleLine(runs, context, constructs) {
|
|
194
194
|
return emitRuns(runs, context, constructs).replace(/\\\n/g, " ");
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
package/dist/emit/inline.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.cjs";
|
|
2
2
|
import { ContentRun, RunConstructExtent } from "document-schema.js";
|
|
3
3
|
//#region src/emit/inline.d.ts
|
|
4
4
|
interface InlineEmitContext {
|
|
@@ -8,7 +8,7 @@ interface InlineEmitContext {
|
|
|
8
8
|
declare function escapeMarkdownText(text: string): string;
|
|
9
9
|
declare function escapeLinkDestination(destination: string): string;
|
|
10
10
|
declare function renderLinkTitle(title: string): string;
|
|
11
|
-
declare function emitRuns(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]
|
|
12
|
-
declare function emitRunsSingleLine(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]
|
|
11
|
+
declare function emitRuns(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]): string;
|
|
12
|
+
declare function emitRunsSingleLine(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]): string;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { InlineEmitContext, emitRuns, emitRunsSingleLine, escapeLinkDestination, escapeMarkdownText, renderLinkTitle };
|
package/dist/emit/inline.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.js";
|
|
2
2
|
import { ContentRun, RunConstructExtent } from "document-schema.js";
|
|
3
3
|
//#region src/emit/inline.d.ts
|
|
4
4
|
interface InlineEmitContext {
|
|
@@ -8,7 +8,7 @@ interface InlineEmitContext {
|
|
|
8
8
|
declare function escapeMarkdownText(text: string): string;
|
|
9
9
|
declare function escapeLinkDestination(destination: string): string;
|
|
10
10
|
declare function renderLinkTitle(title: string): string;
|
|
11
|
-
declare function emitRuns(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]
|
|
12
|
-
declare function emitRunsSingleLine(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]
|
|
11
|
+
declare function emitRuns(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]): string;
|
|
12
|
+
declare function emitRunsSingleLine(runs: readonly ContentRun[], context: InlineEmitContext, constructs?: readonly RunConstructExtent[]): string;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { InlineEmitContext, emitRuns, emitRunsSingleLine, escapeLinkDestination, escapeMarkdownText, renderLinkTitle };
|
package/dist/emit/inline.js
CHANGED
|
@@ -157,7 +157,7 @@ function linkTitleCovering(constructs, start, end) {
|
|
|
157
157
|
}
|
|
158
158
|
return tightest?.descriptor.kind === "link" ? tightest.descriptor.title : void 0;
|
|
159
159
|
}
|
|
160
|
-
function emitRuns(runs, context, constructs
|
|
160
|
+
function emitRuns(runs, context, constructs) {
|
|
161
161
|
let out = "";
|
|
162
162
|
let index = 0;
|
|
163
163
|
while (index < runs.length) {
|
|
@@ -189,7 +189,7 @@ function emitRuns(runs, context, constructs = void 0) {
|
|
|
189
189
|
}
|
|
190
190
|
return out;
|
|
191
191
|
}
|
|
192
|
-
function emitRunsSingleLine(runs, context, constructs
|
|
192
|
+
function emitRunsSingleLine(runs, context, constructs) {
|
|
193
193
|
return emitRuns(runs, context, constructs).replace(/\\\n/g, " ");
|
|
194
194
|
}
|
|
195
195
|
//#endregion
|
package/dist/emit/table.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.cjs";
|
|
2
2
|
import { InlineEmitContext } from "./inline.cjs";
|
|
3
3
|
import { ContentTable } from "document-schema.js";
|
|
4
4
|
//#region src/emit/table.d.ts
|
package/dist/emit/table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.js";
|
|
2
2
|
import { InlineEmitContext } from "./inline.js";
|
|
3
3
|
import { ContentTable } from "document-schema.js";
|
|
4
4
|
//#region src/emit/table.d.ts
|
package/dist/html/render.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as MarkdownDocumentNode, v as MarkdownInlineNode } from "../ast-
|
|
1
|
+
import { s as MarkdownDocumentNode, v as MarkdownInlineNode } from "../ast-CNfTgS0N.cjs";
|
|
2
2
|
//#region src/html/render.d.ts
|
|
3
3
|
declare function escapeHtml(text: string): string;
|
|
4
4
|
declare function escapeHref(href: string): string;
|
package/dist/html/render.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as MarkdownDocumentNode, v as MarkdownInlineNode } from "../ast-
|
|
1
|
+
import { s as MarkdownDocumentNode, v as MarkdownInlineNode } from "../ast-CNfTgS0N.js";
|
|
2
2
|
//#region src/html/render.d.ts
|
|
3
3
|
declare function escapeHtml(text: string): string;
|
|
4
4
|
declare function escapeHref(href: string): string;
|
package/dist/image/image.cjs
CHANGED
|
@@ -14,10 +14,10 @@ function bytesToBase64(bytes) {
|
|
|
14
14
|
const b0 = bytes[index];
|
|
15
15
|
const b1 = index + 1 < length ? bytes[index + 1] : 0;
|
|
16
16
|
const b2 = index + 2 < length ? bytes[index + 2] : 0;
|
|
17
|
-
out += BASE64_TABLE
|
|
18
|
-
out += BASE64_TABLE
|
|
19
|
-
out += index + 1 < length ? BASE64_TABLE
|
|
20
|
-
out += index + 2 < length ? BASE64_TABLE
|
|
17
|
+
out += BASE64_TABLE.charAt(b0 >> 2);
|
|
18
|
+
out += BASE64_TABLE.charAt((b0 & 3) << 4 | b1 >> 4);
|
|
19
|
+
out += index + 1 < length ? BASE64_TABLE.charAt((b1 & 15) << 2 | b2 >> 6) : "=";
|
|
20
|
+
out += index + 2 < length ? BASE64_TABLE.charAt(b2 & 63) : "=";
|
|
21
21
|
}
|
|
22
22
|
return out;
|
|
23
23
|
}
|
package/dist/image/image.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as detectImageFormat, i as bytesToBase64, n as ImageFormat, o as readImageDimensions, r as base64ToBytes, t as ImageDimensions } from "../image-
|
|
1
|
+
import { a as detectImageFormat, i as bytesToBase64, n as ImageFormat, o as readImageDimensions, r as base64ToBytes, t as ImageDimensions } from "../image-BtmTG4_a.cjs";
|
|
2
2
|
export { ImageDimensions, ImageFormat, base64ToBytes, bytesToBase64, detectImageFormat, readImageDimensions };
|
package/dist/image/image.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as detectImageFormat, i as bytesToBase64, n as ImageFormat, o as readImageDimensions, r as base64ToBytes, t as ImageDimensions } from "../image-
|
|
1
|
+
import { a as detectImageFormat, i as bytesToBase64, n as ImageFormat, o as readImageDimensions, r as base64ToBytes, t as ImageDimensions } from "../image-BtmTG4_a.js";
|
|
2
2
|
export { ImageDimensions, ImageFormat, base64ToBytes, bytesToBase64, detectImageFormat, readImageDimensions };
|
package/dist/image/image.js
CHANGED
|
@@ -13,10 +13,10 @@ function bytesToBase64(bytes) {
|
|
|
13
13
|
const b0 = bytes[index];
|
|
14
14
|
const b1 = index + 1 < length ? bytes[index + 1] : 0;
|
|
15
15
|
const b2 = index + 2 < length ? bytes[index + 2] : 0;
|
|
16
|
-
out += BASE64_TABLE
|
|
17
|
-
out += BASE64_TABLE
|
|
18
|
-
out += index + 1 < length ? BASE64_TABLE
|
|
19
|
-
out += index + 2 < length ? BASE64_TABLE
|
|
16
|
+
out += BASE64_TABLE.charAt(b0 >> 2);
|
|
17
|
+
out += BASE64_TABLE.charAt((b0 & 3) << 4 | b1 >> 4);
|
|
18
|
+
out += index + 1 < length ? BASE64_TABLE.charAt((b1 & 15) << 2 | b2 >> 6) : "=";
|
|
19
|
+
out += index + 2 < length ? BASE64_TABLE.charAt(b2 & 63) : "=";
|
|
20
20
|
}
|
|
21
21
|
return out;
|
|
22
22
|
}
|
|
@@ -3,7 +3,7 @@ interface ImageDimensions {
|
|
|
3
3
|
readonly widthPx: number;
|
|
4
4
|
readonly heightPx: number;
|
|
5
5
|
}
|
|
6
|
-
type ImageFormat =
|
|
6
|
+
type ImageFormat = "png" | "jpeg";
|
|
7
7
|
declare function bytesToBase64(bytes: Uint8Array): string;
|
|
8
8
|
declare function base64ToBytes(base64: string): Uint8Array;
|
|
9
9
|
declare function detectImageFormat(bytes: Uint8Array): ImageFormat | undefined;
|
|
@@ -3,7 +3,7 @@ interface ImageDimensions {
|
|
|
3
3
|
readonly widthPx: number;
|
|
4
4
|
readonly heightPx: number;
|
|
5
5
|
}
|
|
6
|
-
type ImageFormat =
|
|
6
|
+
type ImageFormat = "png" | "jpeg";
|
|
7
7
|
declare function bytesToBase64(bytes: Uint8Array): string;
|
|
8
8
|
declare function base64ToBytes(base64: string): Uint8Array;
|
|
9
9
|
declare function detectImageFormat(bytes: Uint8Array): ImageFormat | undefined;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-CH-xa2-s.cjs";
|
|
2
2
|
import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.cjs";
|
|
3
|
-
import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-
|
|
3
|
+
import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-B5L0HpAJ.cjs";
|
|
4
4
|
import { MarkdownBulletListMarker, MarkdownCodeFenceChar, MarkdownEmphasisMarker, MarkdownHeadingStyle, MarkdownLineEnding, MarkdownOrderedListDelimiter, MarkdownThematicBreakChar, ReadMarkdownOptions, WriteMarkdownOptions, WriteMarkdownStyleOptions } from "./options/options.cjs";
|
|
5
5
|
import { ReadMarkdownContentResult, ReadMarkdownResult, readMarkdown, readMarkdownContent } from "./read.cjs";
|
|
6
6
|
import { writeMarkdown, writeMarkdownContent } from "./write.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-
|
|
1
|
+
import { a as MarkdownInputTooLargeError, c as MarkdownNestingLimitExceededError, d as MarkdownUnbalancedConstructMarkersError, f as MarkdownUnsupportedDocumentKindError, i as MarkdownDiagnosticSink, m as NOOP_MARKDOWN_DIAGNOSTIC_SINK, n as MarkdownDiagnosticCodes, o as MarkdownInvalidRunConstructExtentError, p as MarkdownWriteError, r as MarkdownDiagnosticSeverity, s as MarkdownInvalidUtf8Error, t as MarkdownDiagnostic, u as MarkdownParseError } from "./diagnostics-CH-xa2-s.js";
|
|
2
2
|
import { MarkdownBytesSchema, markdownCodec, markdownContentCodec } from "./codec.js";
|
|
3
|
-
import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-
|
|
3
|
+
import { n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "./image-C390OIB3.js";
|
|
4
4
|
import { MarkdownBulletListMarker, MarkdownCodeFenceChar, MarkdownEmphasisMarker, MarkdownHeadingStyle, MarkdownLineEnding, MarkdownOrderedListDelimiter, MarkdownThematicBreakChar, ReadMarkdownOptions, WriteMarkdownOptions, WriteMarkdownStyleOptions } from "./options/options.js";
|
|
5
5
|
import { ReadMarkdownContentResult, ReadMarkdownResult, readMarkdown, readMarkdownContent } from "./read.js";
|
|
6
6
|
import { writeMarkdown, writeMarkdownContent } from "./write.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InlineNode } from "./node.cjs";
|
|
2
2
|
//#region src/inline/delimiter.d.ts
|
|
3
|
-
type DelimiterChar =
|
|
3
|
+
type DelimiterChar = "*" | "_" | "~";
|
|
4
4
|
declare function isDelimiterChar(char: string): char is DelimiterChar;
|
|
5
5
|
interface Delimiter {
|
|
6
6
|
readonly char: DelimiterChar;
|
|
@@ -23,7 +23,7 @@ declare class DelimiterStack {
|
|
|
23
23
|
push(char: DelimiterChar, run: DelimiterRun, node: InlineNode): void;
|
|
24
24
|
remove(delimiter: Delimiter): void;
|
|
25
25
|
}
|
|
26
|
-
type EmphasisWrapperFactory = (kind:
|
|
26
|
+
type EmphasisWrapperFactory = (kind: "emphasis" | "strong" | "strikethrough", marker: DelimiterChar) => InlineNode;
|
|
27
27
|
declare function processEmphasis(stack: DelimiterStack, stackBottom: Delimiter | undefined, createWrapper: EmphasisWrapperFactory): void;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Delimiter, DelimiterChar, DelimiterRun, DelimiterStack, EmphasisWrapperFactory, isDelimiterChar, processEmphasis, scanDelimiterRun };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InlineNode } from "./node.js";
|
|
2
2
|
//#region src/inline/delimiter.d.ts
|
|
3
|
-
type DelimiterChar =
|
|
3
|
+
type DelimiterChar = "*" | "_" | "~";
|
|
4
4
|
declare function isDelimiterChar(char: string): char is DelimiterChar;
|
|
5
5
|
interface Delimiter {
|
|
6
6
|
readonly char: DelimiterChar;
|
|
@@ -23,7 +23,7 @@ declare class DelimiterStack {
|
|
|
23
23
|
push(char: DelimiterChar, run: DelimiterRun, node: InlineNode): void;
|
|
24
24
|
remove(delimiter: Delimiter): void;
|
|
25
25
|
}
|
|
26
|
-
type EmphasisWrapperFactory = (kind:
|
|
26
|
+
type EmphasisWrapperFactory = (kind: "emphasis" | "strong" | "strikethrough", marker: DelimiterChar) => InlineNode;
|
|
27
27
|
declare function processEmphasis(stack: DelimiterStack, stackBottom: Delimiter | undefined, createWrapper: EmphasisWrapperFactory): void;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Delimiter, DelimiterChar, DelimiterRun, DelimiterStack, EmphasisWrapperFactory, isDelimiterChar, processEmphasis, scanDelimiterRun };
|
package/dist/inline/inline.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parseInlines, t as InlineParseOptions } from "../inline-
|
|
1
|
+
import { n as parseInlines, t as InlineParseOptions } from "../inline-CnO86zMw.cjs";
|
|
2
2
|
export { InlineParseOptions, parseInlines };
|
package/dist/inline/inline.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parseInlines, t as InlineParseOptions } from "../inline-
|
|
1
|
+
import { n as parseInlines, t as InlineParseOptions } from "../inline-DItZ-VVw.js";
|
|
2
2
|
export { InlineParseOptions, parseInlines };
|
package/dist/inline/node.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region src/inline/node.d.ts
|
|
2
|
-
type InlineNodeKind =
|
|
2
|
+
type InlineNodeKind = "text" | "emphasis" | "strong" | "strikethrough" | "codeSpan" | "link" | "image" | "autolink" | "hardBreak" | "softBreak" | "rawHtml" | "entity" | "mathInline" | "footnoteReference" | "container";
|
|
3
3
|
declare class InlineNode {
|
|
4
4
|
readonly kind: InlineNodeKind;
|
|
5
5
|
literal: string;
|
|
6
6
|
destination: string;
|
|
7
7
|
title: string | undefined;
|
|
8
8
|
email: boolean;
|
|
9
|
-
marker:
|
|
9
|
+
marker: "_" | "*";
|
|
10
10
|
raw: string;
|
|
11
11
|
label: string;
|
|
12
12
|
parent: InlineNode | undefined;
|
package/dist/inline/node.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region src/inline/node.d.ts
|
|
2
|
-
type InlineNodeKind =
|
|
2
|
+
type InlineNodeKind = "text" | "emphasis" | "strong" | "strikethrough" | "codeSpan" | "link" | "image" | "autolink" | "hardBreak" | "softBreak" | "rawHtml" | "entity" | "mathInline" | "footnoteReference" | "container";
|
|
3
3
|
declare class InlineNode {
|
|
4
4
|
readonly kind: InlineNodeKind;
|
|
5
5
|
literal: string;
|
|
6
6
|
destination: string;
|
|
7
7
|
title: string | undefined;
|
|
8
8
|
email: boolean;
|
|
9
|
-
marker:
|
|
9
|
+
marker: "_" | "*";
|
|
10
10
|
raw: string;
|
|
11
11
|
label: string;
|
|
12
12
|
parent: InlineNode | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as MarkdownInlineNode } from "./ast-
|
|
1
|
+
import { v as MarkdownInlineNode } from "./ast-CNfTgS0N.cjs";
|
|
2
2
|
import { r as FootnoteLabelSet } from "./footnote-CKk4JbLk.cjs";
|
|
3
3
|
import { LinkReferenceMap } from "./inline/link.cjs";
|
|
4
4
|
//#region src/inline/inline.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as MarkdownInlineNode } from "./ast-
|
|
1
|
+
import { v as MarkdownInlineNode } from "./ast-CNfTgS0N.js";
|
|
2
2
|
import { r as FootnoteLabelSet } from "./footnote-CKk4JbLk.js";
|
|
3
3
|
import { LinkReferenceMap } from "./inline/link.js";
|
|
4
4
|
//#region src/inline/inline.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.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-CH-xa2-s.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/image.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveMarkdownImage, i as ResolvedMarkdownImage, n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "../image-
|
|
1
|
+
import { a as resolveMarkdownImage, i as ResolvedMarkdownImage, n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "../image-B5L0HpAJ.cjs";
|
|
2
2
|
export { MarkdownImageResolveContext, MarkdownImageResolver, MarkdownResolvedImageBytes, ResolvedMarkdownImage, resolveMarkdownImage };
|
package/dist/lower/image.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveMarkdownImage, i as ResolvedMarkdownImage, n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "../image-
|
|
1
|
+
import { a as resolveMarkdownImage, i as ResolvedMarkdownImage, n as MarkdownImageResolver, r as MarkdownResolvedImageBytes, t as MarkdownImageResolveContext } from "../image-C390OIB3.js";
|
|
2
2
|
export { MarkdownImageResolveContext, MarkdownImageResolver, MarkdownResolvedImageBytes, ResolvedMarkdownImage, resolveMarkdownImage };
|
package/dist/lower/inline.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v as MarkdownInlineNode } from "../ast-
|
|
2
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { v as MarkdownInlineNode } from "../ast-CNfTgS0N.cjs";
|
|
2
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.cjs";
|
|
3
3
|
import { ContentRun, RunConstructExtent } from "document-schema.js";
|
|
4
4
|
//#region src/lower/inline.d.ts
|
|
5
5
|
interface InlineLowerContext {
|
|
6
6
|
readonly sink: MarkdownDiagnosticSink;
|
|
7
|
-
readonly rawHtml:
|
|
7
|
+
readonly rawHtml: "preserve" | "drop";
|
|
8
8
|
}
|
|
9
9
|
interface InlineLowerResult {
|
|
10
10
|
readonly runs: ContentRun[];
|
package/dist/lower/inline.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v as MarkdownInlineNode } from "../ast-
|
|
2
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
1
|
+
import { v as MarkdownInlineNode } from "../ast-CNfTgS0N.js";
|
|
2
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.js";
|
|
3
3
|
import { ContentRun, RunConstructExtent } from "document-schema.js";
|
|
4
4
|
//#region src/lower/inline.d.ts
|
|
5
5
|
interface InlineLowerContext {
|
|
6
6
|
readonly sink: MarkdownDiagnosticSink;
|
|
7
|
-
readonly rawHtml:
|
|
7
|
+
readonly rawHtml: "preserve" | "drop";
|
|
8
8
|
}
|
|
9
9
|
interface InlineLowerResult {
|
|
10
10
|
readonly runs: ContentRun[];
|
package/dist/lower/table.d.cts
CHANGED
package/dist/lower/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
2
|
-
import { n as MarkdownImageResolver } from "../image-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.cjs";
|
|
2
|
+
import { n as MarkdownImageResolver } from "../image-B5L0HpAJ.cjs";
|
|
3
3
|
import { Margins, PageSize } from "document-schema.js";
|
|
4
4
|
//#region src/options/options.d.ts
|
|
5
5
|
interface ReadMarkdownOptions {
|
|
@@ -8,7 +8,7 @@ interface ReadMarkdownOptions {
|
|
|
8
8
|
readonly pageSize?: PageSize;
|
|
9
9
|
readonly margins?: Margins;
|
|
10
10
|
readonly images?: MarkdownImageResolver;
|
|
11
|
-
readonly rawHtml?:
|
|
11
|
+
readonly rawHtml?: "preserve" | "drop";
|
|
12
12
|
readonly frontMatter?: boolean;
|
|
13
13
|
readonly gfmTables?: boolean;
|
|
14
14
|
readonly gfmAutolinks?: boolean;
|
|
@@ -18,13 +18,13 @@ interface ReadMarkdownOptions {
|
|
|
18
18
|
readonly maxInputBytes?: number;
|
|
19
19
|
readonly maxBlockNesting?: number;
|
|
20
20
|
}
|
|
21
|
-
type MarkdownHeadingStyle =
|
|
22
|
-
type MarkdownBulletListMarker =
|
|
23
|
-
type MarkdownOrderedListDelimiter =
|
|
24
|
-
type MarkdownEmphasisMarker =
|
|
25
|
-
type MarkdownCodeFenceChar =
|
|
26
|
-
type MarkdownThematicBreakChar =
|
|
27
|
-
type MarkdownLineEnding =
|
|
21
|
+
type MarkdownHeadingStyle = "atx" | "setext";
|
|
22
|
+
type MarkdownBulletListMarker = "-" | "*" | "+";
|
|
23
|
+
type MarkdownOrderedListDelimiter = "." | ")";
|
|
24
|
+
type MarkdownEmphasisMarker = "_" | "*";
|
|
25
|
+
type MarkdownCodeFenceChar = "`" | "~";
|
|
26
|
+
type MarkdownThematicBreakChar = "-" | "_" | "*";
|
|
27
|
+
type MarkdownLineEnding = "lf" | "crlf";
|
|
28
28
|
interface WriteMarkdownStyleOptions {
|
|
29
29
|
readonly headingStyle?: MarkdownHeadingStyle;
|
|
30
30
|
readonly bulletListMarker?: MarkdownBulletListMarker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as MarkdownDiagnosticSink } from "../diagnostics-
|
|
2
|
-
import { n as MarkdownImageResolver } from "../image-
|
|
1
|
+
import { i as MarkdownDiagnosticSink } from "../diagnostics-CH-xa2-s.js";
|
|
2
|
+
import { n as MarkdownImageResolver } from "../image-C390OIB3.js";
|
|
3
3
|
import { Margins, PageSize } from "document-schema.js";
|
|
4
4
|
//#region src/options/options.d.ts
|
|
5
5
|
interface ReadMarkdownOptions {
|
|
@@ -8,7 +8,7 @@ interface ReadMarkdownOptions {
|
|
|
8
8
|
readonly pageSize?: PageSize;
|
|
9
9
|
readonly margins?: Margins;
|
|
10
10
|
readonly images?: MarkdownImageResolver;
|
|
11
|
-
readonly rawHtml?:
|
|
11
|
+
readonly rawHtml?: "preserve" | "drop";
|
|
12
12
|
readonly frontMatter?: boolean;
|
|
13
13
|
readonly gfmTables?: boolean;
|
|
14
14
|
readonly gfmAutolinks?: boolean;
|
|
@@ -18,13 +18,13 @@ interface ReadMarkdownOptions {
|
|
|
18
18
|
readonly maxInputBytes?: number;
|
|
19
19
|
readonly maxBlockNesting?: number;
|
|
20
20
|
}
|
|
21
|
-
type MarkdownHeadingStyle =
|
|
22
|
-
type MarkdownBulletListMarker =
|
|
23
|
-
type MarkdownOrderedListDelimiter =
|
|
24
|
-
type MarkdownEmphasisMarker =
|
|
25
|
-
type MarkdownCodeFenceChar =
|
|
26
|
-
type MarkdownThematicBreakChar =
|
|
27
|
-
type MarkdownLineEnding =
|
|
21
|
+
type MarkdownHeadingStyle = "atx" | "setext";
|
|
22
|
+
type MarkdownBulletListMarker = "-" | "*" | "+";
|
|
23
|
+
type MarkdownOrderedListDelimiter = "." | ")";
|
|
24
|
+
type MarkdownEmphasisMarker = "_" | "*";
|
|
25
|
+
type MarkdownCodeFenceChar = "`" | "~";
|
|
26
|
+
type MarkdownThematicBreakChar = "-" | "_" | "*";
|
|
27
|
+
type MarkdownLineEnding = "lf" | "crlf";
|
|
28
28
|
interface WriteMarkdownStyleOptions {
|
|
29
29
|
readonly headingStyle?: MarkdownHeadingStyle;
|
|
30
30
|
readonly bulletListMarker?: MarkdownBulletListMarker;
|
package/dist/read.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MarkdownDiagnostic } from "./diagnostics-
|
|
1
|
+
import { t as MarkdownDiagnostic } from "./diagnostics-CH-xa2-s.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-CH-xa2-s.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
|