markdown-codec 11.1.12 → 11.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/block/block.cjs +23 -612
- package/dist/block/block.d.cts +22 -3
- package/dist/block/block.d.ts +22 -3
- package/dist/block/block.js +2 -607
- package/dist/block/definitions.d.cts +1 -1
- package/dist/block/definitions.d.ts +1 -1
- package/dist/block/list.d.cts +1 -1
- package/dist/block/list.d.ts +1 -1
- package/dist/block/node.d.cts +1 -45
- package/dist/block/node.d.ts +1 -45
- package/dist/block/parser.cjs +3 -0
- package/dist/block/parser.d.cts +57 -0
- package/dist/block/parser.d.ts +57 -0
- package/dist/block/parser.js +2 -0
- package/dist/block-C3ftt8qO.js +610 -0
- package/dist/block-DsxTiUms.cjs +747 -0
- package/dist/defaults/defaults.d.cts +1 -1
- package/dist/defaults/defaults.d.ts +1 -1
- package/dist/emit/emit.cjs +7 -647
- package/dist/emit/emit.d.cts +22 -3
- package/dist/emit/emit.d.ts +22 -3
- package/dist/emit/emit.js +2 -646
- package/dist/emit/html-table.d.cts +1 -1
- package/dist/emit/html-table.d.ts +1 -1
- package/dist/emit/inline.cjs +1 -1
- package/dist/emit/inline.js +1 -1
- package/dist/emit/list-render.cjs +29 -0
- package/dist/emit/list-render.d.cts +81 -0
- package/dist/emit/list-render.d.ts +81 -0
- package/dist/emit/list-render.js +2 -0
- package/dist/emit/setext.cjs +143 -0
- package/dist/emit/setext.d.cts +30 -0
- package/dist/emit/setext.d.ts +30 -0
- package/dist/emit/setext.js +119 -0
- package/dist/emit/table.d.cts +1 -11
- package/dist/emit/table.d.ts +1 -11
- package/dist/emit-CCOoudJW.cjs +734 -0
- package/dist/emit-Do1KMQHB.js +537 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/inline/entity.cjs +1 -1
- package/dist/inline/entity.js +1 -1
- package/dist/inline/inline.cjs +2 -2
- package/dist/inline/inline.d.cts +1 -1
- package/dist/inline/inline.d.ts +1 -1
- package/dist/inline/inline.js +2 -2
- package/dist/{inline-CArcArOD.d.ts → inline-BG6ge5m2.d.ts} +1 -1
- package/dist/{inline-GzD5QtFh.d.cts → inline-BxX0iOy6.d.cts} +1 -1
- package/dist/lower/lower.cjs +3 -3
- package/dist/lower/lower.d.cts +1 -1
- package/dist/lower/lower.d.ts +1 -1
- package/dist/lower/lower.js +2 -2
- package/dist/node-DcxnTjF0.d.cts +46 -0
- package/dist/node-w8dVfAUD.d.ts +46 -0
- package/dist/options/options.d.cts +1 -43
- package/dist/options/options.d.ts +1 -43
- package/dist/options-CZoMEGL8.d.ts +44 -0
- package/dist/options-ZnZOMG3X.d.cts +44 -0
- package/dist/read.d.cts +1 -1
- package/dist/read.d.ts +1 -1
- package/dist/scan/entity-table-n-z.cjs +207 -0
- package/dist/scan/entity-table-n-z.d.cts +4 -0
- package/dist/scan/entity-table-n-z.d.ts +4 -0
- package/dist/scan/entity-table-n-z.js +206 -0
- package/dist/scan/entity-table-t-z.cjs +28 -0
- package/dist/scan/entity-table-t-z.d.cts +4 -0
- package/dist/scan/entity-table-t-z.d.ts +4 -0
- package/dist/scan/entity-table-t-z.js +27 -0
- package/dist/scan/entity-table-u-z.cjs +59 -0
- package/dist/scan/entity-table-u-z.d.cts +4 -0
- package/dist/scan/entity-table-u-z.d.ts +4 -0
- package/dist/scan/entity-table-u-z.js +58 -0
- package/dist/scan/entity-table-w-z.cjs +11 -0
- package/dist/scan/entity-table-w-z.d.cts +4 -0
- package/dist/scan/entity-table-w-z.d.ts +4 -0
- package/dist/scan/entity-table-w-z.js +10 -0
- package/dist/scan/entity-table-x-z.cjs +10 -0
- package/dist/scan/entity-table-x-z.d.cts +4 -0
- package/dist/scan/entity-table-x-z.d.ts +4 -0
- package/dist/scan/entity-table-x-z.js +9 -0
- package/dist/scan/entity-table-y-z-2.cjs +780 -0
- package/dist/scan/entity-table-y-z-2.d.cts +4 -0
- package/dist/scan/entity-table-y-z-2.d.ts +4 -0
- package/dist/scan/entity-table-y-z-2.js +779 -0
- package/dist/scan/entity-table-y-z.cjs +779 -0
- package/dist/scan/entity-table-y-z.d.cts +4 -0
- package/dist/scan/entity-table-y-z.d.ts +4 -0
- package/dist/scan/entity-table-y-z.js +778 -0
- package/dist/scan/entity-table.cjs +20 -1834
- package/dist/scan/entity-table.d.cts +2 -1
- package/dist/scan/entity-table.d.ts +2 -1
- package/dist/scan/entity-table.js +20 -1835
- package/dist/table-BFbOhm0R.d.ts +12 -0
- package/dist/table-PtkYEYdL.d.cts +12 -0
- package/dist/write.cjs +2 -2
- package/dist/write.d.cts +1 -1
- package/dist/write.d.ts +1 -1
- package/dist/write.js +1 -1
- package/package.json +2 -2
package/dist/emit/emit.d.cts
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import { WriteMarkdownOptions } from "../options
|
|
2
|
-
import {
|
|
1
|
+
import { i as MarkdownHeadingStyle, l as WriteMarkdownOptions } from "../options-ZnZOMG3X.cjs";
|
|
2
|
+
import { t as TableEmitContext } from "../table-PtkYEYdL.cjs";
|
|
3
|
+
import { ContentBlock, ContentConstructEnd, ContentConstructStart, ContentDocument, ContentParagraph } from "document-schema.js";
|
|
3
4
|
//#region src/emit/emit.d.ts
|
|
5
|
+
declare function isDataUri(destination: string): boolean;
|
|
6
|
+
interface EmitContext extends TableEmitContext {
|
|
7
|
+
readonly bulletMarker: string;
|
|
8
|
+
readonly orderedDelimiter: string;
|
|
9
|
+
readonly codeFenceChar: string;
|
|
10
|
+
readonly thematicBreakChar: string;
|
|
11
|
+
readonly headingStyle: MarkdownHeadingStyle;
|
|
12
|
+
readonly orderedCounters: Map<string, number>;
|
|
13
|
+
readonly resolvedListGlyphs: Map<string, string>;
|
|
14
|
+
readonly reportedFallbackNumIds: Set<string>;
|
|
15
|
+
reportedAbsentNumIdFallback: boolean;
|
|
16
|
+
divisionDepth: number;
|
|
17
|
+
enclosingItemId: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
declare function canInterruptOpenParagraph(paragraph: ContentParagraph, context: EmitContext): boolean;
|
|
20
|
+
declare function renderParagraphBody(paragraph: ContentParagraph, context: EmitContext): string;
|
|
21
|
+
type RenderableBlock = Exclude<ContentBlock, ContentConstructStart | ContentConstructEnd>;
|
|
22
|
+
declare function renderTopLevelBlock(block: RenderableBlock, context: EmitContext): string;
|
|
4
23
|
declare function emitMarkdown(document: ContentDocument, options?: WriteMarkdownOptions): string;
|
|
5
24
|
declare function assertNeverRenderableBlock(block: never): never;
|
|
6
25
|
//#endregion
|
|
7
|
-
export { assertNeverRenderableBlock, emitMarkdown };
|
|
26
|
+
export { EmitContext, RenderableBlock, assertNeverRenderableBlock, canInterruptOpenParagraph, emitMarkdown, isDataUri, renderParagraphBody, renderTopLevelBlock };
|
package/dist/emit/emit.d.ts
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import { WriteMarkdownOptions } from "../options
|
|
2
|
-
import {
|
|
1
|
+
import { i as MarkdownHeadingStyle, l as WriteMarkdownOptions } from "../options-CZoMEGL8.js";
|
|
2
|
+
import { t as TableEmitContext } from "../table-BFbOhm0R.js";
|
|
3
|
+
import { ContentBlock, ContentConstructEnd, ContentConstructStart, ContentDocument, ContentParagraph } from "document-schema.js";
|
|
3
4
|
//#region src/emit/emit.d.ts
|
|
5
|
+
declare function isDataUri(destination: string): boolean;
|
|
6
|
+
interface EmitContext extends TableEmitContext {
|
|
7
|
+
readonly bulletMarker: string;
|
|
8
|
+
readonly orderedDelimiter: string;
|
|
9
|
+
readonly codeFenceChar: string;
|
|
10
|
+
readonly thematicBreakChar: string;
|
|
11
|
+
readonly headingStyle: MarkdownHeadingStyle;
|
|
12
|
+
readonly orderedCounters: Map<string, number>;
|
|
13
|
+
readonly resolvedListGlyphs: Map<string, string>;
|
|
14
|
+
readonly reportedFallbackNumIds: Set<string>;
|
|
15
|
+
reportedAbsentNumIdFallback: boolean;
|
|
16
|
+
divisionDepth: number;
|
|
17
|
+
enclosingItemId: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
declare function canInterruptOpenParagraph(paragraph: ContentParagraph, context: EmitContext): boolean;
|
|
20
|
+
declare function renderParagraphBody(paragraph: ContentParagraph, context: EmitContext): string;
|
|
21
|
+
type RenderableBlock = Exclude<ContentBlock, ContentConstructStart | ContentConstructEnd>;
|
|
22
|
+
declare function renderTopLevelBlock(block: RenderableBlock, context: EmitContext): string;
|
|
4
23
|
declare function emitMarkdown(document: ContentDocument, options?: WriteMarkdownOptions): string;
|
|
5
24
|
declare function assertNeverRenderableBlock(block: never): never;
|
|
6
25
|
//#endregion
|
|
7
|
-
export { assertNeverRenderableBlock, emitMarkdown };
|
|
26
|
+
export { EmitContext, RenderableBlock, assertNeverRenderableBlock, canInterruptOpenParagraph, emitMarkdown, isDataUri, renderParagraphBody, renderTopLevelBlock };
|