@meowdown/markdown 0.65.2 → 0.65.4

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 (2) hide show
  1. package/dist/index.d.ts +8 -8
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { SyntaxNode, Tree, TreeCursor } from "@lezer/common";
10
10
  * - a bare domain on the curated TLD list gets an implied `https://`
11
11
  * - anything else returns `undefined`
12
12
  */
13
- declare function getAutolinkHref(urlText: string): string | undefined;
13
+ export declare function getAutolinkHref(urlText: string): string | undefined;
14
14
  //#endregion
15
15
  //#region src/inline.d.ts
16
16
  /**
@@ -33,11 +33,11 @@ interface InlineElement {
33
33
  * `parseInline` is typed as returning `Element[]` (with `children`
34
34
  * marked `@internal`).
35
35
  */
36
- declare function parseInline(text: string): readonly InlineElement[];
36
+ export declare function parseInline(text: string): readonly InlineElement[];
37
37
  /**
38
38
  * Depth-first list of every element matching `test`.
39
39
  */
40
- declare function collectInlineElements(nodes: readonly InlineElement[], test: (node: InlineElement) => boolean, out?: InlineElement[]): InlineElement[];
40
+ export declare function collectInlineElements(nodes: readonly InlineElement[], test: (node: InlineElement) => boolean, out?: InlineElement[]): InlineElement[];
41
41
  //#endregion
42
42
  //#region src/node-names.d.ts
43
43
  /**
@@ -52,7 +52,7 @@ type LezerNodeName = (typeof LEZER_NODE_NAMES)[number];
52
52
  /**
53
53
  * Cached node name -> node id lookup for the project-wide `gfmParser`.
54
54
  */
55
- declare const LEZER_NODE_IDS: Readonly<Record<LezerNodeName, number>>;
55
+ export declare const LEZER_NODE_IDS: Readonly<Record<LezerNodeName, number>>;
56
56
  //#endregion
57
57
  //#region src/parser.d.ts
58
58
  /**
@@ -62,7 +62,7 @@ declare const LEZER_NODE_IDS: Readonly<Record<LezerNodeName, number>>;
62
62
  * `$math$` inline syntax. Use when both block and inline structure must
63
63
  * be recognized.
64
64
  */
65
- declare const gfmParser: MarkdownParser;
65
+ export declare const gfmParser: MarkdownParser;
66
66
  /**
67
67
  * `@lezer/markdown` parser configured with GFM plus a `SkipInline`
68
68
  * parser that short-circuits the inline phase. The block phase still
@@ -70,7 +70,7 @@ declare const gfmParser: MarkdownParser;
70
70
  * QuoteMark, CodeMark, CodeText, …), but no Emphasis / Link /
71
71
  * InlineCode etc. nodes are ever created.
72
72
  */
73
- declare const gfmBlockOnlyParser: MarkdownParser;
73
+ export declare const gfmBlockOnlyParser: MarkdownParser;
74
74
  //#endregion
75
75
  //#region src/unicode.d.ts
76
76
  /**
@@ -78,6 +78,6 @@ declare const gfmBlockOnlyParser: MarkdownParser;
78
78
  *
79
79
  * Ported from https://github.com/lezer-parser/markdown/blob/1.6.3/src/markdown.ts#L233
80
80
  */
81
- declare function isSpaceChar(char: number): boolean;
81
+ export declare function isSpaceChar(char: number): boolean;
82
82
  //#endregion
83
- export { type InlineElement, LEZER_NODE_IDS, type LezerNodeName, type MarkdownParser, type SyntaxNode, type Tree, type TreeCursor, collectInlineElements, getAutolinkHref, gfmBlockOnlyParser, gfmParser, isSpaceChar, parseInline };
83
+ export type { InlineElement, LezerNodeName, MarkdownParser, SyntaxNode, Tree, TreeCursor };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meowdown/markdown",
3
3
  "type": "module",
4
- "version": "0.65.2",
4
+ "version": "0.65.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",