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.
Files changed (99) hide show
  1. package/dist/block/block.cjs +23 -612
  2. package/dist/block/block.d.cts +22 -3
  3. package/dist/block/block.d.ts +22 -3
  4. package/dist/block/block.js +2 -607
  5. package/dist/block/definitions.d.cts +1 -1
  6. package/dist/block/definitions.d.ts +1 -1
  7. package/dist/block/list.d.cts +1 -1
  8. package/dist/block/list.d.ts +1 -1
  9. package/dist/block/node.d.cts +1 -45
  10. package/dist/block/node.d.ts +1 -45
  11. package/dist/block/parser.cjs +3 -0
  12. package/dist/block/parser.d.cts +57 -0
  13. package/dist/block/parser.d.ts +57 -0
  14. package/dist/block/parser.js +2 -0
  15. package/dist/block-C3ftt8qO.js +610 -0
  16. package/dist/block-DsxTiUms.cjs +747 -0
  17. package/dist/defaults/defaults.d.cts +1 -1
  18. package/dist/defaults/defaults.d.ts +1 -1
  19. package/dist/emit/emit.cjs +7 -647
  20. package/dist/emit/emit.d.cts +22 -3
  21. package/dist/emit/emit.d.ts +22 -3
  22. package/dist/emit/emit.js +2 -646
  23. package/dist/emit/html-table.d.cts +1 -1
  24. package/dist/emit/html-table.d.ts +1 -1
  25. package/dist/emit/inline.cjs +1 -1
  26. package/dist/emit/inline.js +1 -1
  27. package/dist/emit/list-render.cjs +29 -0
  28. package/dist/emit/list-render.d.cts +81 -0
  29. package/dist/emit/list-render.d.ts +81 -0
  30. package/dist/emit/list-render.js +2 -0
  31. package/dist/emit/setext.cjs +143 -0
  32. package/dist/emit/setext.d.cts +30 -0
  33. package/dist/emit/setext.d.ts +30 -0
  34. package/dist/emit/setext.js +119 -0
  35. package/dist/emit/table.d.cts +1 -11
  36. package/dist/emit/table.d.ts +1 -11
  37. package/dist/emit-CCOoudJW.cjs +734 -0
  38. package/dist/emit-Do1KMQHB.js +537 -0
  39. package/dist/index.d.cts +2 -2
  40. package/dist/index.d.ts +2 -2
  41. package/dist/inline/entity.cjs +1 -1
  42. package/dist/inline/entity.js +1 -1
  43. package/dist/inline/inline.cjs +2 -2
  44. package/dist/inline/inline.d.cts +1 -1
  45. package/dist/inline/inline.d.ts +1 -1
  46. package/dist/inline/inline.js +2 -2
  47. package/dist/{inline-CArcArOD.d.ts → inline-BG6ge5m2.d.ts} +1 -1
  48. package/dist/{inline-GzD5QtFh.d.cts → inline-BxX0iOy6.d.cts} +1 -1
  49. package/dist/lower/lower.cjs +3 -3
  50. package/dist/lower/lower.d.cts +1 -1
  51. package/dist/lower/lower.d.ts +1 -1
  52. package/dist/lower/lower.js +2 -2
  53. package/dist/node-DcxnTjF0.d.cts +46 -0
  54. package/dist/node-w8dVfAUD.d.ts +46 -0
  55. package/dist/options/options.d.cts +1 -43
  56. package/dist/options/options.d.ts +1 -43
  57. package/dist/options-CZoMEGL8.d.ts +44 -0
  58. package/dist/options-ZnZOMG3X.d.cts +44 -0
  59. package/dist/read.d.cts +1 -1
  60. package/dist/read.d.ts +1 -1
  61. package/dist/scan/entity-table-n-z.cjs +207 -0
  62. package/dist/scan/entity-table-n-z.d.cts +4 -0
  63. package/dist/scan/entity-table-n-z.d.ts +4 -0
  64. package/dist/scan/entity-table-n-z.js +206 -0
  65. package/dist/scan/entity-table-t-z.cjs +28 -0
  66. package/dist/scan/entity-table-t-z.d.cts +4 -0
  67. package/dist/scan/entity-table-t-z.d.ts +4 -0
  68. package/dist/scan/entity-table-t-z.js +27 -0
  69. package/dist/scan/entity-table-u-z.cjs +59 -0
  70. package/dist/scan/entity-table-u-z.d.cts +4 -0
  71. package/dist/scan/entity-table-u-z.d.ts +4 -0
  72. package/dist/scan/entity-table-u-z.js +58 -0
  73. package/dist/scan/entity-table-w-z.cjs +11 -0
  74. package/dist/scan/entity-table-w-z.d.cts +4 -0
  75. package/dist/scan/entity-table-w-z.d.ts +4 -0
  76. package/dist/scan/entity-table-w-z.js +10 -0
  77. package/dist/scan/entity-table-x-z.cjs +10 -0
  78. package/dist/scan/entity-table-x-z.d.cts +4 -0
  79. package/dist/scan/entity-table-x-z.d.ts +4 -0
  80. package/dist/scan/entity-table-x-z.js +9 -0
  81. package/dist/scan/entity-table-y-z-2.cjs +780 -0
  82. package/dist/scan/entity-table-y-z-2.d.cts +4 -0
  83. package/dist/scan/entity-table-y-z-2.d.ts +4 -0
  84. package/dist/scan/entity-table-y-z-2.js +779 -0
  85. package/dist/scan/entity-table-y-z.cjs +779 -0
  86. package/dist/scan/entity-table-y-z.d.cts +4 -0
  87. package/dist/scan/entity-table-y-z.d.ts +4 -0
  88. package/dist/scan/entity-table-y-z.js +778 -0
  89. package/dist/scan/entity-table.cjs +20 -1834
  90. package/dist/scan/entity-table.d.cts +2 -1
  91. package/dist/scan/entity-table.d.ts +2 -1
  92. package/dist/scan/entity-table.js +20 -1835
  93. package/dist/table-BFbOhm0R.d.ts +12 -0
  94. package/dist/table-PtkYEYdL.d.cts +12 -0
  95. package/dist/write.cjs +2 -2
  96. package/dist/write.d.cts +1 -1
  97. package/dist/write.d.ts +1 -1
  98. package/dist/write.js +1 -1
  99. package/package.json +2 -2
@@ -1,46 +1,2 @@
1
- import { D as MarkdownOrderedListDelimiter, P as MarkdownTableAlignment, i as MarkdownBulletMarker } from "../ast-DI-t9uKv.cjs";
2
- import { t as HtmlBlockType } from "../html-bkz2QTuq.cjs";
3
- //#region src/block/node.d.ts
4
- type BlockNodeKind = "document" | "paragraph" | "heading" | "blockquote" | "list" | "listItem" | "codeBlock" | "htmlBlock" | "thematicBreak" | "table" | "mathBlock" | "footnoteDefinition";
5
- type BlockHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
6
- interface ListMarkerData {
7
- readonly type: "bullet" | "ordered";
8
- readonly bulletChar?: MarkdownBulletMarker;
9
- readonly delimiter?: MarkdownOrderedListDelimiter;
10
- readonly start?: number;
11
- readonly padding: number;
12
- readonly markerOffset: number;
13
- }
14
- declare class BlockNode {
15
- readonly kind: BlockNodeKind;
16
- parent: BlockNode | undefined;
17
- readonly children: BlockNode[];
18
- open: boolean;
19
- startLine: number;
20
- content: string;
21
- lastLineBlank: boolean;
22
- lastLineChecked: boolean;
23
- level: BlockHeadingLevel;
24
- setext: boolean;
25
- fenced: boolean;
26
- fenceChar: "`" | "~";
27
- fenceLength: number;
28
- fenceOffset: number;
29
- infoString: string;
30
- literal: string;
31
- htmlBlockType: HtmlBlockType;
32
- listData: ListMarkerData | undefined;
33
- tight: boolean;
34
- alignments: MarkdownTableAlignment[];
35
- headerLine: string;
36
- footnoteLabel: string;
37
- constructor(kind: BlockNodeKind, startLine: number);
38
- get lastChild(): BlockNode | undefined;
39
- appendChild(child: BlockNode): void;
40
- replaceWith(replacement: BlockNode): void;
41
- unlink(): void;
42
- }
43
- declare function canContain(parent: BlockNodeKind, child: BlockNodeKind): boolean;
44
- declare function suppressesBlockStarts(kind: BlockNodeKind): boolean;
45
- //#endregion
1
+ import { a as canContain, i as ListMarkerData, n as BlockNode, o as suppressesBlockStarts, r as BlockNodeKind, t as BlockHeadingLevel } from "../node-DcxnTjF0.cjs";
46
2
  export { BlockHeadingLevel, BlockNode, BlockNodeKind, ListMarkerData, canContain, suppressesBlockStarts };
@@ -1,46 +1,2 @@
1
- import { D as MarkdownOrderedListDelimiter, P as MarkdownTableAlignment, i as MarkdownBulletMarker } from "../ast-DI-t9uKv.js";
2
- import { t as HtmlBlockType } from "../html-bkz2QTuq.js";
3
- //#region src/block/node.d.ts
4
- type BlockNodeKind = "document" | "paragraph" | "heading" | "blockquote" | "list" | "listItem" | "codeBlock" | "htmlBlock" | "thematicBreak" | "table" | "mathBlock" | "footnoteDefinition";
5
- type BlockHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
6
- interface ListMarkerData {
7
- readonly type: "bullet" | "ordered";
8
- readonly bulletChar?: MarkdownBulletMarker;
9
- readonly delimiter?: MarkdownOrderedListDelimiter;
10
- readonly start?: number;
11
- readonly padding: number;
12
- readonly markerOffset: number;
13
- }
14
- declare class BlockNode {
15
- readonly kind: BlockNodeKind;
16
- parent: BlockNode | undefined;
17
- readonly children: BlockNode[];
18
- open: boolean;
19
- startLine: number;
20
- content: string;
21
- lastLineBlank: boolean;
22
- lastLineChecked: boolean;
23
- level: BlockHeadingLevel;
24
- setext: boolean;
25
- fenced: boolean;
26
- fenceChar: "`" | "~";
27
- fenceLength: number;
28
- fenceOffset: number;
29
- infoString: string;
30
- literal: string;
31
- htmlBlockType: HtmlBlockType;
32
- listData: ListMarkerData | undefined;
33
- tight: boolean;
34
- alignments: MarkdownTableAlignment[];
35
- headerLine: string;
36
- footnoteLabel: string;
37
- constructor(kind: BlockNodeKind, startLine: number);
38
- get lastChild(): BlockNode | undefined;
39
- appendChild(child: BlockNode): void;
40
- replaceWith(replacement: BlockNode): void;
41
- unlink(): void;
42
- }
43
- declare function canContain(parent: BlockNodeKind, child: BlockNodeKind): boolean;
44
- declare function suppressesBlockStarts(kind: BlockNodeKind): boolean;
45
- //#endregion
1
+ import { a as canContain, i as ListMarkerData, n as BlockNode, o as suppressesBlockStarts, r as BlockNodeKind, t as BlockHeadingLevel } from "../node-w8dVfAUD.js";
46
2
  export { BlockHeadingLevel, BlockNode, BlockNodeKind, ListMarkerData, canContain, suppressesBlockStarts };
@@ -0,0 +1,3 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_block = require("../block-DsxTiUms.cjs");
3
+ exports.BlockParser = require_block.BlockParser;
@@ -0,0 +1,57 @@
1
+ import { LinkReferenceDefinition } from "../inline/link.cjs";
2
+ import { n as BlockNode } from "../node-DcxnTjF0.cjs";
3
+ import { MarkdownParseOptions } from "./block.cjs";
4
+ //#region src/block/parser.d.ts
5
+ declare class BlockParser {
6
+ readonly references: Map<string, LinkReferenceDefinition>;
7
+ readonly footnotes: Set<string>;
8
+ private readonly document;
9
+ private readonly tables;
10
+ private readonly footnotesEnabled;
11
+ private readonly sink;
12
+ private readonly maxNesting;
13
+ private tip;
14
+ private oldTip;
15
+ private lastMatchedContainer;
16
+ private line;
17
+ private lineNumber;
18
+ private nestingDepth;
19
+ constructor(options: MarkdownParseOptions);
20
+ parse(source: string): BlockNode;
21
+ private reportUnterminatedAtEof;
22
+ private incorporateLine;
23
+ private walkOpenBlocks;
24
+ private continueBlock;
25
+ private continueBlockquote;
26
+ private consumeBlockquoteMarker;
27
+ private continueListItem;
28
+ private continueFootnoteDefinition;
29
+ private continueCodeBlock;
30
+ private continueMathBlock;
31
+ private openNewBlocks;
32
+ private tryBlockStart;
33
+ private tryBlockquoteStart;
34
+ private tryAtxHeadingStart;
35
+ private tryCodeFenceStart;
36
+ private tryMathBlockStart;
37
+ private tryFootnoteDefinitionStart;
38
+ private footnoteDefinitionMayOpenIn;
39
+ private tryHtmlBlockStart;
40
+ private tryPromoteParagraph;
41
+ private trySetextHeading;
42
+ private tryTableHeader;
43
+ private tryThematicBreakStart;
44
+ private tryListItemStart;
45
+ private tryIndentedCodeStart;
46
+ private addTextToContainer;
47
+ private recordBlankLineForTightness;
48
+ private addLine;
49
+ private addChild;
50
+ private closeUnmatchedBlocks;
51
+ private finalize;
52
+ private finalizeContent;
53
+ private finalizeCodeBlock;
54
+ private finalizeMathBlock;
55
+ }
56
+ //#endregion
57
+ export { BlockParser };
@@ -0,0 +1,57 @@
1
+ import { LinkReferenceDefinition } from "../inline/link.js";
2
+ import { n as BlockNode } from "../node-w8dVfAUD.js";
3
+ import { MarkdownParseOptions } from "./block.js";
4
+ //#region src/block/parser.d.ts
5
+ declare class BlockParser {
6
+ readonly references: Map<string, LinkReferenceDefinition>;
7
+ readonly footnotes: Set<string>;
8
+ private readonly document;
9
+ private readonly tables;
10
+ private readonly footnotesEnabled;
11
+ private readonly sink;
12
+ private readonly maxNesting;
13
+ private tip;
14
+ private oldTip;
15
+ private lastMatchedContainer;
16
+ private line;
17
+ private lineNumber;
18
+ private nestingDepth;
19
+ constructor(options: MarkdownParseOptions);
20
+ parse(source: string): BlockNode;
21
+ private reportUnterminatedAtEof;
22
+ private incorporateLine;
23
+ private walkOpenBlocks;
24
+ private continueBlock;
25
+ private continueBlockquote;
26
+ private consumeBlockquoteMarker;
27
+ private continueListItem;
28
+ private continueFootnoteDefinition;
29
+ private continueCodeBlock;
30
+ private continueMathBlock;
31
+ private openNewBlocks;
32
+ private tryBlockStart;
33
+ private tryBlockquoteStart;
34
+ private tryAtxHeadingStart;
35
+ private tryCodeFenceStart;
36
+ private tryMathBlockStart;
37
+ private tryFootnoteDefinitionStart;
38
+ private footnoteDefinitionMayOpenIn;
39
+ private tryHtmlBlockStart;
40
+ private tryPromoteParagraph;
41
+ private trySetextHeading;
42
+ private tryTableHeader;
43
+ private tryThematicBreakStart;
44
+ private tryListItemStart;
45
+ private tryIndentedCodeStart;
46
+ private addTextToContainer;
47
+ private recordBlankLineForTightness;
48
+ private addLine;
49
+ private addChild;
50
+ private closeUnmatchedBlocks;
51
+ private finalize;
52
+ private finalizeContent;
53
+ private finalizeCodeBlock;
54
+ private finalizeMathBlock;
55
+ }
56
+ //#endregion
57
+ export { BlockParser };
@@ -0,0 +1,2 @@
1
+ import { C as BlockParser } from "../block-C3ftt8qO.js";
2
+ export { BlockParser };