@f-o-t/markdown 1.0.0 → 1.0.2
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/index.d.ts +37 -709
- package/package.json +10 -12
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,7 @@ declare const DEFAULT_MAX_BUFFER_SIZE: number;
|
|
|
6
6
|
/**
|
|
7
7
|
* Source position for a node in the original markdown.
|
|
8
8
|
*/
|
|
9
|
-
declare const positionSchema:
|
|
10
|
-
startLine: z.ZodNumber;
|
|
11
|
-
startColumn: z.ZodNumber;
|
|
12
|
-
endLine: z.ZodNumber;
|
|
13
|
-
endColumn: z.ZodNumber;
|
|
14
|
-
startOffset: z.ZodNumber;
|
|
15
|
-
endOffset: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>;
|
|
9
|
+
declare const positionSchema: any;
|
|
17
10
|
type Position = z.infer<typeof positionSchema>;
|
|
18
11
|
interface TextNode {
|
|
19
12
|
type: "text";
|
|
@@ -109,12 +102,12 @@ interface LinkReferenceDefinitionNode {
|
|
|
109
102
|
}
|
|
110
103
|
interface BlockquoteNode {
|
|
111
104
|
type: "blockquote";
|
|
112
|
-
children:
|
|
105
|
+
children: BlockNode[];
|
|
113
106
|
position?: Position;
|
|
114
107
|
}
|
|
115
108
|
interface ListItemNode {
|
|
116
109
|
type: "listItem";
|
|
117
|
-
children:
|
|
110
|
+
children: BlockNode[];
|
|
118
111
|
marker: "-" | "*" | "+" | ")" | ".";
|
|
119
112
|
spread: boolean;
|
|
120
113
|
checked?: boolean;
|
|
@@ -148,10 +141,10 @@ interface TableNode {
|
|
|
148
141
|
align: Array<"left" | "center" | "right" | null>;
|
|
149
142
|
position?: Position;
|
|
150
143
|
}
|
|
151
|
-
type
|
|
144
|
+
type BlockNode = ThematicBreakNode | HeadingNode | CodeBlockNode | HtmlBlockNode | ParagraphNode | LinkReferenceDefinitionNode | BlockquoteNode | ListItemNode | ListNode | TableNode;
|
|
152
145
|
interface DocumentNode {
|
|
153
146
|
type: "document";
|
|
154
|
-
children:
|
|
147
|
+
children: BlockNode[];
|
|
155
148
|
references?: Record<string, {
|
|
156
149
|
type: "linkReferenceDefinition";
|
|
157
150
|
label: string;
|
|
@@ -166,714 +159,49 @@ interface MarkdownDocument {
|
|
|
166
159
|
lineEnding: "\n" | "\r\n";
|
|
167
160
|
source?: string;
|
|
168
161
|
}
|
|
169
|
-
declare const textNodeSchema:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
declare const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
declare const
|
|
194
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
195
|
-
startLine: z.ZodNumber;
|
|
196
|
-
startColumn: z.ZodNumber;
|
|
197
|
-
endLine: z.ZodNumber;
|
|
198
|
-
endColumn: z.ZodNumber;
|
|
199
|
-
startOffset: z.ZodNumber;
|
|
200
|
-
endOffset: z.ZodNumber;
|
|
201
|
-
}, z.core.$strip>>;
|
|
202
|
-
type: z.ZodLiteral<"hardBreak">;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
declare const softBreakNodeSchema: z.ZodObject<{
|
|
205
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
206
|
-
startLine: z.ZodNumber;
|
|
207
|
-
startColumn: z.ZodNumber;
|
|
208
|
-
endLine: z.ZodNumber;
|
|
209
|
-
endColumn: z.ZodNumber;
|
|
210
|
-
startOffset: z.ZodNumber;
|
|
211
|
-
endOffset: z.ZodNumber;
|
|
212
|
-
}, z.core.$strip>>;
|
|
213
|
-
type: z.ZodLiteral<"softBreak">;
|
|
214
|
-
}, z.core.$strip>;
|
|
215
|
-
declare const htmlInlineNodeSchema: z.ZodObject<{
|
|
216
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
217
|
-
startLine: z.ZodNumber;
|
|
218
|
-
startColumn: z.ZodNumber;
|
|
219
|
-
endLine: z.ZodNumber;
|
|
220
|
-
endColumn: z.ZodNumber;
|
|
221
|
-
startOffset: z.ZodNumber;
|
|
222
|
-
endOffset: z.ZodNumber;
|
|
223
|
-
}, z.core.$strip>>;
|
|
224
|
-
type: z.ZodLiteral<"htmlInline">;
|
|
225
|
-
value: z.ZodString;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
declare const emphasisNodeSchema: z.ZodObject<{
|
|
228
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
startLine: z.ZodNumber;
|
|
230
|
-
startColumn: z.ZodNumber;
|
|
231
|
-
endLine: z.ZodNumber;
|
|
232
|
-
endColumn: z.ZodNumber;
|
|
233
|
-
startOffset: z.ZodNumber;
|
|
234
|
-
endOffset: z.ZodNumber;
|
|
235
|
-
}, z.core.$strip>>;
|
|
236
|
-
type: z.ZodLiteral<"emphasis">;
|
|
237
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
238
|
-
marker: z.ZodEnum<{
|
|
239
|
-
"*": "*";
|
|
240
|
-
_: "_";
|
|
241
|
-
}>;
|
|
242
|
-
}, z.core.$strip>;
|
|
243
|
-
declare const strongNodeSchema: z.ZodObject<{
|
|
244
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
245
|
-
startLine: z.ZodNumber;
|
|
246
|
-
startColumn: z.ZodNumber;
|
|
247
|
-
endLine: z.ZodNumber;
|
|
248
|
-
endColumn: z.ZodNumber;
|
|
249
|
-
startOffset: z.ZodNumber;
|
|
250
|
-
endOffset: z.ZodNumber;
|
|
251
|
-
}, z.core.$strip>>;
|
|
252
|
-
type: z.ZodLiteral<"strong">;
|
|
253
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
254
|
-
marker: z.ZodEnum<{
|
|
255
|
-
"**": "**";
|
|
256
|
-
__: "__";
|
|
257
|
-
}>;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
declare const linkNodeSchema: z.ZodObject<{
|
|
260
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
261
|
-
startLine: z.ZodNumber;
|
|
262
|
-
startColumn: z.ZodNumber;
|
|
263
|
-
endLine: z.ZodNumber;
|
|
264
|
-
endColumn: z.ZodNumber;
|
|
265
|
-
startOffset: z.ZodNumber;
|
|
266
|
-
endOffset: z.ZodNumber;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
type: z.ZodLiteral<"link">;
|
|
269
|
-
url: z.ZodString;
|
|
270
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
271
|
-
title: z.ZodOptional<z.ZodString>;
|
|
272
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
declare const imageNodeSchema: z.ZodObject<{
|
|
275
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
276
|
-
startLine: z.ZodNumber;
|
|
277
|
-
startColumn: z.ZodNumber;
|
|
278
|
-
endLine: z.ZodNumber;
|
|
279
|
-
endColumn: z.ZodNumber;
|
|
280
|
-
startOffset: z.ZodNumber;
|
|
281
|
-
endOffset: z.ZodNumber;
|
|
282
|
-
}, z.core.$strip>>;
|
|
283
|
-
type: z.ZodLiteral<"image">;
|
|
284
|
-
alt: z.ZodString;
|
|
285
|
-
url: z.ZodString;
|
|
286
|
-
title: z.ZodOptional<z.ZodString>;
|
|
287
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
288
|
-
}, z.core.$strip>;
|
|
289
|
-
declare const inlineNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
290
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
291
|
-
startLine: z.ZodNumber;
|
|
292
|
-
startColumn: z.ZodNumber;
|
|
293
|
-
endLine: z.ZodNumber;
|
|
294
|
-
endColumn: z.ZodNumber;
|
|
295
|
-
startOffset: z.ZodNumber;
|
|
296
|
-
endOffset: z.ZodNumber;
|
|
297
|
-
}, z.core.$strip>>;
|
|
298
|
-
type: z.ZodLiteral<"text">;
|
|
299
|
-
value: z.ZodString;
|
|
300
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
302
|
-
startLine: z.ZodNumber;
|
|
303
|
-
startColumn: z.ZodNumber;
|
|
304
|
-
endLine: z.ZodNumber;
|
|
305
|
-
endColumn: z.ZodNumber;
|
|
306
|
-
startOffset: z.ZodNumber;
|
|
307
|
-
endOffset: z.ZodNumber;
|
|
308
|
-
}, z.core.$strip>>;
|
|
309
|
-
type: z.ZodLiteral<"codeSpan">;
|
|
310
|
-
value: z.ZodString;
|
|
311
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
313
|
-
startLine: z.ZodNumber;
|
|
314
|
-
startColumn: z.ZodNumber;
|
|
315
|
-
endLine: z.ZodNumber;
|
|
316
|
-
endColumn: z.ZodNumber;
|
|
317
|
-
startOffset: z.ZodNumber;
|
|
318
|
-
endOffset: z.ZodNumber;
|
|
319
|
-
}, z.core.$strip>>;
|
|
320
|
-
type: z.ZodLiteral<"hardBreak">;
|
|
321
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
323
|
-
startLine: z.ZodNumber;
|
|
324
|
-
startColumn: z.ZodNumber;
|
|
325
|
-
endLine: z.ZodNumber;
|
|
326
|
-
endColumn: z.ZodNumber;
|
|
327
|
-
startOffset: z.ZodNumber;
|
|
328
|
-
endOffset: z.ZodNumber;
|
|
329
|
-
}, z.core.$strip>>;
|
|
330
|
-
type: z.ZodLiteral<"softBreak">;
|
|
331
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
332
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
333
|
-
startLine: z.ZodNumber;
|
|
334
|
-
startColumn: z.ZodNumber;
|
|
335
|
-
endLine: z.ZodNumber;
|
|
336
|
-
endColumn: z.ZodNumber;
|
|
337
|
-
startOffset: z.ZodNumber;
|
|
338
|
-
endOffset: z.ZodNumber;
|
|
339
|
-
}, z.core.$strip>>;
|
|
340
|
-
type: z.ZodLiteral<"htmlInline">;
|
|
341
|
-
value: z.ZodString;
|
|
342
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
344
|
-
startLine: z.ZodNumber;
|
|
345
|
-
startColumn: z.ZodNumber;
|
|
346
|
-
endLine: z.ZodNumber;
|
|
347
|
-
endColumn: z.ZodNumber;
|
|
348
|
-
startOffset: z.ZodNumber;
|
|
349
|
-
endOffset: z.ZodNumber;
|
|
350
|
-
}, z.core.$strip>>;
|
|
351
|
-
type: z.ZodLiteral<"emphasis">;
|
|
352
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
353
|
-
marker: z.ZodEnum<{
|
|
354
|
-
"*": "*";
|
|
355
|
-
_: "_";
|
|
356
|
-
}>;
|
|
357
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
358
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
359
|
-
startLine: z.ZodNumber;
|
|
360
|
-
startColumn: z.ZodNumber;
|
|
361
|
-
endLine: z.ZodNumber;
|
|
362
|
-
endColumn: z.ZodNumber;
|
|
363
|
-
startOffset: z.ZodNumber;
|
|
364
|
-
endOffset: z.ZodNumber;
|
|
365
|
-
}, z.core.$strip>>;
|
|
366
|
-
type: z.ZodLiteral<"strong">;
|
|
367
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
368
|
-
marker: z.ZodEnum<{
|
|
369
|
-
"**": "**";
|
|
370
|
-
__: "__";
|
|
371
|
-
}>;
|
|
372
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
373
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
374
|
-
startLine: z.ZodNumber;
|
|
375
|
-
startColumn: z.ZodNumber;
|
|
376
|
-
endLine: z.ZodNumber;
|
|
377
|
-
endColumn: z.ZodNumber;
|
|
378
|
-
startOffset: z.ZodNumber;
|
|
379
|
-
endOffset: z.ZodNumber;
|
|
380
|
-
}, z.core.$strip>>;
|
|
381
|
-
type: z.ZodLiteral<"link">;
|
|
382
|
-
url: z.ZodString;
|
|
383
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
384
|
-
title: z.ZodOptional<z.ZodString>;
|
|
385
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
386
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
387
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
388
|
-
startLine: z.ZodNumber;
|
|
389
|
-
startColumn: z.ZodNumber;
|
|
390
|
-
endLine: z.ZodNumber;
|
|
391
|
-
endColumn: z.ZodNumber;
|
|
392
|
-
startOffset: z.ZodNumber;
|
|
393
|
-
endOffset: z.ZodNumber;
|
|
394
|
-
}, z.core.$strip>>;
|
|
395
|
-
type: z.ZodLiteral<"image">;
|
|
396
|
-
alt: z.ZodString;
|
|
397
|
-
url: z.ZodString;
|
|
398
|
-
title: z.ZodOptional<z.ZodString>;
|
|
399
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
400
|
-
}, z.core.$strip>]>;
|
|
401
|
-
declare const thematicBreakNodeSchema: z.ZodObject<{
|
|
402
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
403
|
-
startLine: z.ZodNumber;
|
|
404
|
-
startColumn: z.ZodNumber;
|
|
405
|
-
endLine: z.ZodNumber;
|
|
406
|
-
endColumn: z.ZodNumber;
|
|
407
|
-
startOffset: z.ZodNumber;
|
|
408
|
-
endOffset: z.ZodNumber;
|
|
409
|
-
}, z.core.$strip>>;
|
|
410
|
-
type: z.ZodLiteral<"thematicBreak">;
|
|
411
|
-
marker: z.ZodEnum<{
|
|
412
|
-
"*": "*";
|
|
413
|
-
_: "_";
|
|
414
|
-
"-": "-";
|
|
415
|
-
}>;
|
|
416
|
-
}, z.core.$strip>;
|
|
417
|
-
declare const headingNodeSchema: z.ZodObject<{
|
|
418
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
419
|
-
startLine: z.ZodNumber;
|
|
420
|
-
startColumn: z.ZodNumber;
|
|
421
|
-
endLine: z.ZodNumber;
|
|
422
|
-
endColumn: z.ZodNumber;
|
|
423
|
-
startOffset: z.ZodNumber;
|
|
424
|
-
endOffset: z.ZodNumber;
|
|
425
|
-
}, z.core.$strip>>;
|
|
426
|
-
type: z.ZodLiteral<"heading">;
|
|
427
|
-
level: z.ZodNumber;
|
|
428
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
429
|
-
style: z.ZodEnum<{
|
|
430
|
-
atx: "atx";
|
|
431
|
-
setext: "setext";
|
|
432
|
-
}>;
|
|
433
|
-
}, z.core.$strip>;
|
|
434
|
-
declare const codeBlockNodeSchema: z.ZodObject<{
|
|
435
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
436
|
-
startLine: z.ZodNumber;
|
|
437
|
-
startColumn: z.ZodNumber;
|
|
438
|
-
endLine: z.ZodNumber;
|
|
439
|
-
endColumn: z.ZodNumber;
|
|
440
|
-
startOffset: z.ZodNumber;
|
|
441
|
-
endOffset: z.ZodNumber;
|
|
442
|
-
}, z.core.$strip>>;
|
|
443
|
-
type: z.ZodLiteral<"codeBlock">;
|
|
444
|
-
value: z.ZodString;
|
|
445
|
-
style: z.ZodEnum<{
|
|
446
|
-
fenced: "fenced";
|
|
447
|
-
indented: "indented";
|
|
448
|
-
}>;
|
|
449
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
450
|
-
meta: z.ZodOptional<z.ZodString>;
|
|
451
|
-
fence: z.ZodOptional<z.ZodEnum<{
|
|
452
|
-
"`": "`";
|
|
453
|
-
"~": "~";
|
|
454
|
-
}>>;
|
|
455
|
-
fenceLength: z.ZodOptional<z.ZodNumber>;
|
|
456
|
-
}, z.core.$strip>;
|
|
457
|
-
declare const htmlBlockNodeSchema: z.ZodObject<{
|
|
458
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
459
|
-
startLine: z.ZodNumber;
|
|
460
|
-
startColumn: z.ZodNumber;
|
|
461
|
-
endLine: z.ZodNumber;
|
|
462
|
-
endColumn: z.ZodNumber;
|
|
463
|
-
startOffset: z.ZodNumber;
|
|
464
|
-
endOffset: z.ZodNumber;
|
|
465
|
-
}, z.core.$strip>>;
|
|
466
|
-
type: z.ZodLiteral<"htmlBlock">;
|
|
467
|
-
value: z.ZodString;
|
|
468
|
-
htmlType: z.ZodNumber;
|
|
469
|
-
}, z.core.$strip>;
|
|
470
|
-
declare const paragraphNodeSchema: z.ZodObject<{
|
|
471
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
472
|
-
startLine: z.ZodNumber;
|
|
473
|
-
startColumn: z.ZodNumber;
|
|
474
|
-
endLine: z.ZodNumber;
|
|
475
|
-
endColumn: z.ZodNumber;
|
|
476
|
-
startOffset: z.ZodNumber;
|
|
477
|
-
endOffset: z.ZodNumber;
|
|
478
|
-
}, z.core.$strip>>;
|
|
479
|
-
type: z.ZodLiteral<"paragraph">;
|
|
480
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
481
|
-
}, z.core.$strip>;
|
|
482
|
-
declare const linkReferenceDefinitionSchema: z.ZodObject<{
|
|
483
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
484
|
-
startLine: z.ZodNumber;
|
|
485
|
-
startColumn: z.ZodNumber;
|
|
486
|
-
endLine: z.ZodNumber;
|
|
487
|
-
endColumn: z.ZodNumber;
|
|
488
|
-
startOffset: z.ZodNumber;
|
|
489
|
-
endOffset: z.ZodNumber;
|
|
490
|
-
}, z.core.$strip>>;
|
|
491
|
-
type: z.ZodLiteral<"linkReferenceDefinition">;
|
|
492
|
-
label: z.ZodString;
|
|
493
|
-
url: z.ZodString;
|
|
494
|
-
title: z.ZodOptional<z.ZodString>;
|
|
495
|
-
}, z.core.$strip>;
|
|
496
|
-
declare const blockquoteNodeSchema: z.ZodObject<{
|
|
497
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
498
|
-
startLine: z.ZodNumber;
|
|
499
|
-
startColumn: z.ZodNumber;
|
|
500
|
-
endLine: z.ZodNumber;
|
|
501
|
-
endColumn: z.ZodNumber;
|
|
502
|
-
startOffset: z.ZodNumber;
|
|
503
|
-
endOffset: z.ZodNumber;
|
|
504
|
-
}, z.core.$strip>>;
|
|
505
|
-
type: z.ZodLiteral<"blockquote">;
|
|
506
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
507
|
-
}, z.core.$strip>;
|
|
508
|
-
declare const listItemNodeSchema: z.ZodObject<{
|
|
509
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
510
|
-
startLine: z.ZodNumber;
|
|
511
|
-
startColumn: z.ZodNumber;
|
|
512
|
-
endLine: z.ZodNumber;
|
|
513
|
-
endColumn: z.ZodNumber;
|
|
514
|
-
startOffset: z.ZodNumber;
|
|
515
|
-
endOffset: z.ZodNumber;
|
|
516
|
-
}, z.core.$strip>>;
|
|
517
|
-
type: z.ZodLiteral<"listItem">;
|
|
518
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
519
|
-
marker: z.ZodEnum<{
|
|
520
|
-
"*": "*";
|
|
521
|
-
"-": "-";
|
|
522
|
-
"+": "+";
|
|
523
|
-
")": ")";
|
|
524
|
-
".": ".";
|
|
525
|
-
}>;
|
|
526
|
-
spread: z.ZodBoolean;
|
|
527
|
-
checked: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
-
}, z.core.$strip>;
|
|
529
|
-
declare const listNodeSchema: z.ZodObject<{
|
|
530
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
531
|
-
startLine: z.ZodNumber;
|
|
532
|
-
startColumn: z.ZodNumber;
|
|
533
|
-
endLine: z.ZodNumber;
|
|
534
|
-
endColumn: z.ZodNumber;
|
|
535
|
-
startOffset: z.ZodNumber;
|
|
536
|
-
endOffset: z.ZodNumber;
|
|
537
|
-
}, z.core.$strip>>;
|
|
538
|
-
type: z.ZodLiteral<"list">;
|
|
539
|
-
ordered: z.ZodBoolean;
|
|
540
|
-
start: z.ZodOptional<z.ZodNumber>;
|
|
541
|
-
spread: z.ZodBoolean;
|
|
542
|
-
marker: z.ZodEnum<{
|
|
543
|
-
"*": "*";
|
|
544
|
-
"-": "-";
|
|
545
|
-
"+": "+";
|
|
546
|
-
")": ")";
|
|
547
|
-
".": ".";
|
|
548
|
-
}>;
|
|
549
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
550
|
-
}, z.core.$strip>;
|
|
551
|
-
declare const tableCellNodeSchema: z.ZodObject<{
|
|
552
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
553
|
-
startLine: z.ZodNumber;
|
|
554
|
-
startColumn: z.ZodNumber;
|
|
555
|
-
endLine: z.ZodNumber;
|
|
556
|
-
endColumn: z.ZodNumber;
|
|
557
|
-
startOffset: z.ZodNumber;
|
|
558
|
-
endOffset: z.ZodNumber;
|
|
559
|
-
}, z.core.$strip>>;
|
|
560
|
-
type: z.ZodLiteral<"tableCell">;
|
|
561
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
562
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
563
|
-
left: "left";
|
|
564
|
-
center: "center";
|
|
565
|
-
right: "right";
|
|
566
|
-
}>>;
|
|
567
|
-
isHeader: z.ZodBoolean;
|
|
568
|
-
}, z.core.$strip>;
|
|
569
|
-
declare const tableRowNodeSchema: z.ZodObject<{
|
|
570
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
571
|
-
startLine: z.ZodNumber;
|
|
572
|
-
startColumn: z.ZodNumber;
|
|
573
|
-
endLine: z.ZodNumber;
|
|
574
|
-
endColumn: z.ZodNumber;
|
|
575
|
-
startOffset: z.ZodNumber;
|
|
576
|
-
endOffset: z.ZodNumber;
|
|
577
|
-
}, z.core.$strip>>;
|
|
578
|
-
type: z.ZodLiteral<"tableRow">;
|
|
579
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
580
|
-
isHeader: z.ZodBoolean;
|
|
581
|
-
}, z.core.$strip>;
|
|
582
|
-
declare const tableNodeSchema: z.ZodObject<{
|
|
583
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
584
|
-
startLine: z.ZodNumber;
|
|
585
|
-
startColumn: z.ZodNumber;
|
|
586
|
-
endLine: z.ZodNumber;
|
|
587
|
-
endColumn: z.ZodNumber;
|
|
588
|
-
startOffset: z.ZodNumber;
|
|
589
|
-
endOffset: z.ZodNumber;
|
|
590
|
-
}, z.core.$strip>>;
|
|
591
|
-
type: z.ZodLiteral<"table">;
|
|
592
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
593
|
-
align: z.ZodArray<z.ZodNullable<z.ZodEnum<{
|
|
594
|
-
left: "left";
|
|
595
|
-
center: "center";
|
|
596
|
-
right: "right";
|
|
597
|
-
}>>>;
|
|
598
|
-
}, z.core.$strip>;
|
|
599
|
-
declare const blockNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
600
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
601
|
-
startLine: z.ZodNumber;
|
|
602
|
-
startColumn: z.ZodNumber;
|
|
603
|
-
endLine: z.ZodNumber;
|
|
604
|
-
endColumn: z.ZodNumber;
|
|
605
|
-
startOffset: z.ZodNumber;
|
|
606
|
-
endOffset: z.ZodNumber;
|
|
607
|
-
}, z.core.$strip>>;
|
|
608
|
-
type: z.ZodLiteral<"thematicBreak">;
|
|
609
|
-
marker: z.ZodEnum<{
|
|
610
|
-
"*": "*";
|
|
611
|
-
_: "_";
|
|
612
|
-
"-": "-";
|
|
613
|
-
}>;
|
|
614
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
615
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
616
|
-
startLine: z.ZodNumber;
|
|
617
|
-
startColumn: z.ZodNumber;
|
|
618
|
-
endLine: z.ZodNumber;
|
|
619
|
-
endColumn: z.ZodNumber;
|
|
620
|
-
startOffset: z.ZodNumber;
|
|
621
|
-
endOffset: z.ZodNumber;
|
|
622
|
-
}, z.core.$strip>>;
|
|
623
|
-
type: z.ZodLiteral<"heading">;
|
|
624
|
-
level: z.ZodNumber;
|
|
625
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
626
|
-
style: z.ZodEnum<{
|
|
627
|
-
atx: "atx";
|
|
628
|
-
setext: "setext";
|
|
629
|
-
}>;
|
|
630
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
631
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
632
|
-
startLine: z.ZodNumber;
|
|
633
|
-
startColumn: z.ZodNumber;
|
|
634
|
-
endLine: z.ZodNumber;
|
|
635
|
-
endColumn: z.ZodNumber;
|
|
636
|
-
startOffset: z.ZodNumber;
|
|
637
|
-
endOffset: z.ZodNumber;
|
|
638
|
-
}, z.core.$strip>>;
|
|
639
|
-
type: z.ZodLiteral<"codeBlock">;
|
|
640
|
-
value: z.ZodString;
|
|
641
|
-
style: z.ZodEnum<{
|
|
642
|
-
fenced: "fenced";
|
|
643
|
-
indented: "indented";
|
|
644
|
-
}>;
|
|
645
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
646
|
-
meta: z.ZodOptional<z.ZodString>;
|
|
647
|
-
fence: z.ZodOptional<z.ZodEnum<{
|
|
648
|
-
"`": "`";
|
|
649
|
-
"~": "~";
|
|
650
|
-
}>>;
|
|
651
|
-
fenceLength: z.ZodOptional<z.ZodNumber>;
|
|
652
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
653
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
654
|
-
startLine: z.ZodNumber;
|
|
655
|
-
startColumn: z.ZodNumber;
|
|
656
|
-
endLine: z.ZodNumber;
|
|
657
|
-
endColumn: z.ZodNumber;
|
|
658
|
-
startOffset: z.ZodNumber;
|
|
659
|
-
endOffset: z.ZodNumber;
|
|
660
|
-
}, z.core.$strip>>;
|
|
661
|
-
type: z.ZodLiteral<"htmlBlock">;
|
|
662
|
-
value: z.ZodString;
|
|
663
|
-
htmlType: z.ZodNumber;
|
|
664
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
665
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
666
|
-
startLine: z.ZodNumber;
|
|
667
|
-
startColumn: z.ZodNumber;
|
|
668
|
-
endLine: z.ZodNumber;
|
|
669
|
-
endColumn: z.ZodNumber;
|
|
670
|
-
startOffset: z.ZodNumber;
|
|
671
|
-
endOffset: z.ZodNumber;
|
|
672
|
-
}, z.core.$strip>>;
|
|
673
|
-
type: z.ZodLiteral<"paragraph">;
|
|
674
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
675
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
676
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
677
|
-
startLine: z.ZodNumber;
|
|
678
|
-
startColumn: z.ZodNumber;
|
|
679
|
-
endLine: z.ZodNumber;
|
|
680
|
-
endColumn: z.ZodNumber;
|
|
681
|
-
startOffset: z.ZodNumber;
|
|
682
|
-
endOffset: z.ZodNumber;
|
|
683
|
-
}, z.core.$strip>>;
|
|
684
|
-
type: z.ZodLiteral<"linkReferenceDefinition">;
|
|
685
|
-
label: z.ZodString;
|
|
686
|
-
url: z.ZodString;
|
|
687
|
-
title: z.ZodOptional<z.ZodString>;
|
|
688
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
689
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
690
|
-
startLine: z.ZodNumber;
|
|
691
|
-
startColumn: z.ZodNumber;
|
|
692
|
-
endLine: z.ZodNumber;
|
|
693
|
-
endColumn: z.ZodNumber;
|
|
694
|
-
startOffset: z.ZodNumber;
|
|
695
|
-
endOffset: z.ZodNumber;
|
|
696
|
-
}, z.core.$strip>>;
|
|
697
|
-
type: z.ZodLiteral<"blockquote">;
|
|
698
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
699
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
700
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
701
|
-
startLine: z.ZodNumber;
|
|
702
|
-
startColumn: z.ZodNumber;
|
|
703
|
-
endLine: z.ZodNumber;
|
|
704
|
-
endColumn: z.ZodNumber;
|
|
705
|
-
startOffset: z.ZodNumber;
|
|
706
|
-
endOffset: z.ZodNumber;
|
|
707
|
-
}, z.core.$strip>>;
|
|
708
|
-
type: z.ZodLiteral<"listItem">;
|
|
709
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
710
|
-
marker: z.ZodEnum<{
|
|
711
|
-
"*": "*";
|
|
712
|
-
"-": "-";
|
|
713
|
-
"+": "+";
|
|
714
|
-
")": ")";
|
|
715
|
-
".": ".";
|
|
716
|
-
}>;
|
|
717
|
-
spread: z.ZodBoolean;
|
|
718
|
-
checked: z.ZodOptional<z.ZodBoolean>;
|
|
719
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
720
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
721
|
-
startLine: z.ZodNumber;
|
|
722
|
-
startColumn: z.ZodNumber;
|
|
723
|
-
endLine: z.ZodNumber;
|
|
724
|
-
endColumn: z.ZodNumber;
|
|
725
|
-
startOffset: z.ZodNumber;
|
|
726
|
-
endOffset: z.ZodNumber;
|
|
727
|
-
}, z.core.$strip>>;
|
|
728
|
-
type: z.ZodLiteral<"list">;
|
|
729
|
-
ordered: z.ZodBoolean;
|
|
730
|
-
start: z.ZodOptional<z.ZodNumber>;
|
|
731
|
-
spread: z.ZodBoolean;
|
|
732
|
-
marker: z.ZodEnum<{
|
|
733
|
-
"*": "*";
|
|
734
|
-
"-": "-";
|
|
735
|
-
"+": "+";
|
|
736
|
-
")": ")";
|
|
737
|
-
".": ".";
|
|
738
|
-
}>;
|
|
739
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
740
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
741
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
742
|
-
startLine: z.ZodNumber;
|
|
743
|
-
startColumn: z.ZodNumber;
|
|
744
|
-
endLine: z.ZodNumber;
|
|
745
|
-
endColumn: z.ZodNumber;
|
|
746
|
-
startOffset: z.ZodNumber;
|
|
747
|
-
endOffset: z.ZodNumber;
|
|
748
|
-
}, z.core.$strip>>;
|
|
749
|
-
type: z.ZodLiteral<"table">;
|
|
750
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
751
|
-
align: z.ZodArray<z.ZodNullable<z.ZodEnum<{
|
|
752
|
-
left: "left";
|
|
753
|
-
center: "center";
|
|
754
|
-
right: "right";
|
|
755
|
-
}>>>;
|
|
756
|
-
}, z.core.$strip>]>;
|
|
757
|
-
declare const documentNodeSchema: z.ZodObject<{
|
|
758
|
-
type: z.ZodLiteral<"document">;
|
|
759
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
760
|
-
references: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
761
|
-
type: z.ZodLiteral<"linkReferenceDefinition">;
|
|
762
|
-
label: z.ZodString;
|
|
763
|
-
url: z.ZodString;
|
|
764
|
-
title: z.ZodOptional<z.ZodString>;
|
|
765
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
766
|
-
startLine: z.ZodNumber;
|
|
767
|
-
startColumn: z.ZodNumber;
|
|
768
|
-
endLine: z.ZodNumber;
|
|
769
|
-
endColumn: z.ZodNumber;
|
|
770
|
-
startOffset: z.ZodNumber;
|
|
771
|
-
endOffset: z.ZodNumber;
|
|
772
|
-
}, z.core.$strip>>;
|
|
773
|
-
}, z.core.$strip>>>;
|
|
774
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
775
|
-
startLine: z.ZodNumber;
|
|
776
|
-
startColumn: z.ZodNumber;
|
|
777
|
-
endLine: z.ZodNumber;
|
|
778
|
-
endColumn: z.ZodNumber;
|
|
779
|
-
startOffset: z.ZodNumber;
|
|
780
|
-
endOffset: z.ZodNumber;
|
|
781
|
-
}, z.core.$strip>>;
|
|
782
|
-
}, z.core.$strip>;
|
|
783
|
-
declare const markdownDocumentSchema: z.ZodObject<{
|
|
784
|
-
root: z.ZodObject<{
|
|
785
|
-
type: z.ZodLiteral<"document">;
|
|
786
|
-
children: z.ZodArray<z.ZodUnknown>;
|
|
787
|
-
references: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
788
|
-
type: z.ZodLiteral<"linkReferenceDefinition">;
|
|
789
|
-
label: z.ZodString;
|
|
790
|
-
url: z.ZodString;
|
|
791
|
-
title: z.ZodOptional<z.ZodString>;
|
|
792
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
793
|
-
startLine: z.ZodNumber;
|
|
794
|
-
startColumn: z.ZodNumber;
|
|
795
|
-
endLine: z.ZodNumber;
|
|
796
|
-
endColumn: z.ZodNumber;
|
|
797
|
-
startOffset: z.ZodNumber;
|
|
798
|
-
endOffset: z.ZodNumber;
|
|
799
|
-
}, z.core.$strip>>;
|
|
800
|
-
}, z.core.$strip>>>;
|
|
801
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
802
|
-
startLine: z.ZodNumber;
|
|
803
|
-
startColumn: z.ZodNumber;
|
|
804
|
-
endLine: z.ZodNumber;
|
|
805
|
-
endColumn: z.ZodNumber;
|
|
806
|
-
startOffset: z.ZodNumber;
|
|
807
|
-
endOffset: z.ZodNumber;
|
|
808
|
-
}, z.core.$strip>>;
|
|
809
|
-
}, z.core.$strip>;
|
|
810
|
-
lineEnding: z.ZodEnum<{
|
|
811
|
-
"\n": "\n";
|
|
812
|
-
"\r\n": "\r\n";
|
|
813
|
-
}>;
|
|
814
|
-
source: z.ZodOptional<z.ZodString>;
|
|
815
|
-
}, z.core.$strip>;
|
|
162
|
+
declare const textNodeSchema: any;
|
|
163
|
+
declare const codeSpanNodeSchema: any;
|
|
164
|
+
declare const hardBreakNodeSchema: any;
|
|
165
|
+
declare const softBreakNodeSchema: any;
|
|
166
|
+
declare const htmlInlineNodeSchema: any;
|
|
167
|
+
declare const emphasisNodeSchema: any;
|
|
168
|
+
declare const strongNodeSchema: any;
|
|
169
|
+
declare const linkNodeSchema: any;
|
|
170
|
+
declare const imageNodeSchema: any;
|
|
171
|
+
declare const inlineNodeSchema: any;
|
|
172
|
+
declare const thematicBreakNodeSchema: any;
|
|
173
|
+
declare const headingNodeSchema: any;
|
|
174
|
+
declare const codeBlockNodeSchema: any;
|
|
175
|
+
declare const htmlBlockNodeSchema: any;
|
|
176
|
+
declare const paragraphNodeSchema: any;
|
|
177
|
+
declare const linkReferenceDefinitionSchema: any;
|
|
178
|
+
declare const blockquoteNodeSchema: any;
|
|
179
|
+
declare const listItemNodeSchema: any;
|
|
180
|
+
declare const listNodeSchema: any;
|
|
181
|
+
declare const tableCellNodeSchema: any;
|
|
182
|
+
declare const tableRowNodeSchema: any;
|
|
183
|
+
declare const tableNodeSchema: any;
|
|
184
|
+
declare const blockNodeSchema: any;
|
|
185
|
+
declare const documentNodeSchema: any;
|
|
186
|
+
declare const markdownDocumentSchema: any;
|
|
816
187
|
/**
|
|
817
188
|
* Parse options.
|
|
818
189
|
*/
|
|
819
|
-
declare const parseOptionsSchema:
|
|
820
|
-
positions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
821
|
-
preserveSource: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
822
|
-
}, z.core.$strip>;
|
|
190
|
+
declare const parseOptionsSchema: any;
|
|
823
191
|
type ParseOptions = z.input<typeof parseOptionsSchema>;
|
|
824
192
|
/**
|
|
825
193
|
* Generate options.
|
|
826
194
|
*/
|
|
827
|
-
declare const generateOptionsSchema:
|
|
828
|
-
lineEnding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
829
|
-
"\n": "\n";
|
|
830
|
-
"\r\n": "\r\n";
|
|
831
|
-
}>>>;
|
|
832
|
-
indent: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
833
|
-
setext: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
834
|
-
fence: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
835
|
-
"`": "`";
|
|
836
|
-
"~": "~";
|
|
837
|
-
}>>>;
|
|
838
|
-
fenceLength: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
839
|
-
emphasis: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
840
|
-
"*": "*";
|
|
841
|
-
_: "_";
|
|
842
|
-
}>>>;
|
|
843
|
-
strong: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
844
|
-
"**": "**";
|
|
845
|
-
__: "__";
|
|
846
|
-
}>>>;
|
|
847
|
-
bullet: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
848
|
-
"*": "*";
|
|
849
|
-
"-": "-";
|
|
850
|
-
"+": "+";
|
|
851
|
-
}>>>;
|
|
852
|
-
orderedMarker: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
853
|
-
")": ")";
|
|
854
|
-
".": ".";
|
|
855
|
-
}>>>;
|
|
856
|
-
thematicBreak: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
857
|
-
"*": "*";
|
|
858
|
-
_: "_";
|
|
859
|
-
"-": "-";
|
|
860
|
-
}>>>;
|
|
861
|
-
thematicBreakLength: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
862
|
-
}, z.core.$strip>;
|
|
195
|
+
declare const generateOptionsSchema: any;
|
|
863
196
|
type GenerateOptions = z.input<typeof generateOptionsSchema>;
|
|
864
197
|
/**
|
|
865
198
|
* Stream options.
|
|
866
199
|
*/
|
|
867
|
-
declare const streamOptionsSchema:
|
|
868
|
-
positions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
869
|
-
preserveSource: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
870
|
-
chunkSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
871
|
-
maxBufferSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
872
|
-
}, z.core.$strip>;
|
|
200
|
+
declare const streamOptionsSchema: any;
|
|
873
201
|
type StreamOptions = z.input<typeof streamOptionsSchema>;
|
|
874
202
|
interface BlockStreamEvent {
|
|
875
203
|
type: "block";
|
|
876
|
-
data:
|
|
204
|
+
data: BlockNode;
|
|
877
205
|
}
|
|
878
206
|
interface CompleteStreamEvent {
|
|
879
207
|
type: "complete";
|
|
@@ -908,7 +236,7 @@ interface FileErrorEvent {
|
|
|
908
236
|
interface BatchBlockEvent {
|
|
909
237
|
type: "block";
|
|
910
238
|
fileIndex: number;
|
|
911
|
-
data:
|
|
239
|
+
data: BlockNode;
|
|
912
240
|
}
|
|
913
241
|
interface BatchCompleteEvent {
|
|
914
242
|
type: "batch_complete";
|
|
@@ -926,7 +254,7 @@ type LinkReferenceDefinition = LinkReferenceDefinitionNode;
|
|
|
926
254
|
/** Alias for BatchMarkdownFileResult */
|
|
927
255
|
type BatchParsedMarkdownFile = BatchMarkdownFileResult;
|
|
928
256
|
/** Union type for any node */
|
|
929
|
-
type Node = InlineNode |
|
|
257
|
+
type Node = InlineNode | BlockNode | DocumentNode;
|
|
930
258
|
/** Nodes that contain a value property */
|
|
931
259
|
type LiteralNode = TextNode | CodeSpanNode | HtmlInlineNode | CodeBlockNode | HtmlBlockNode;
|
|
932
260
|
/** Nodes that contain children */
|
|
@@ -1449,4 +777,4 @@ declare function normalizeEscapedNewlines(content: string): string;
|
|
|
1449
777
|
* ```
|
|
1450
778
|
*/
|
|
1451
779
|
declare function normalizeMarkdownEmphasis(text: string): string;
|
|
1452
|
-
export { thematicBreakNodeSchema, textNodeSchema, tableRowNodeSchema, tableNodeSchema, tableCellNodeSchema, strongNodeSchema, streamOptionsSchema, softBreakNodeSchema, renderToHtml, renderNodeToHtml, positionSchema, parseToAst, parseStreamToDocument, parseStream, parseOrThrow, parseOptionsSchema, parseHtml, parseBufferStream, parseBufferOrThrow, parseBuffer, parseBatchStreamToArray, parseBatchStream, parse, paragraphNodeSchema, normalizeMarkdownEmphasis, normalizeLineEndings, normalizeEscapedNewlines, markdownDocumentSchema, listNodeSchema, listItemNodeSchema, linkReferenceDefinitionSchema, linkNodeSchema, isValidMarkdown, inlineNodeSchema, imageNodeSchema, htmlToMarkdown, htmlInlineNodeSchema, htmlBlockNodeSchema, htmlAstToMarkdownAst, headingNodeSchema, hardBreakNodeSchema, generateTaskListString, generateTableString, generateStrongString, generateStrikethroughString, generateOptionsSchema, generateNode, generateListString, generateLinkString, generateInlineCodeString, generateImageString, generateHeadingString, generateEmphasisString, generateCodeBlockString, generateBlockquoteString, generate, emphasisNodeSchema, documentNodeSchema, createGenerator, codeSpanNodeSchema, codeBlockNodeSchema, blockquoteNodeSchema, blockNodeSchema, ThematicBreakNode, TextNode, TableRowNode, TableNode, TableCellNode, StrongNode, StreamOptions, StreamEvent, SoftBreakNode, Position, ParseResult, ParseOptions, ParentNode, ParagraphNode, Node, MarkdownDocument, LiteralNode, ListNode, ListItemNode, LinkReferenceDefinition, LinkNode, InlineNode, ImageNode, HtmlToMarkdownOptions, HtmlRenderOptions, HtmlInlineNode, HtmlBlockNode, HeadingNode, HardBreakNode, GenerateOptions, EmphasisNode, DocumentNode, DEFAULT_MAX_BUFFER_SIZE, CodeSpanNode, CodeBlockNode, BlockquoteNode,
|
|
780
|
+
export { thematicBreakNodeSchema, textNodeSchema, tableRowNodeSchema, tableNodeSchema, tableCellNodeSchema, strongNodeSchema, streamOptionsSchema, softBreakNodeSchema, renderToHtml, renderNodeToHtml, positionSchema, parseToAst, parseStreamToDocument, parseStream, parseOrThrow, parseOptionsSchema, parseHtml, parseBufferStream, parseBufferOrThrow, parseBuffer, parseBatchStreamToArray, parseBatchStream, parse, paragraphNodeSchema, normalizeMarkdownEmphasis, normalizeLineEndings, normalizeEscapedNewlines, markdownDocumentSchema, listNodeSchema, listItemNodeSchema, linkReferenceDefinitionSchema, linkNodeSchema, isValidMarkdown, inlineNodeSchema, imageNodeSchema, htmlToMarkdown, htmlInlineNodeSchema, htmlBlockNodeSchema, htmlAstToMarkdownAst, headingNodeSchema, hardBreakNodeSchema, generateTaskListString, generateTableString, generateStrongString, generateStrikethroughString, generateOptionsSchema, generateNode, generateListString, generateLinkString, generateInlineCodeString, generateImageString, generateHeadingString, generateEmphasisString, generateCodeBlockString, generateBlockquoteString, generate, emphasisNodeSchema, documentNodeSchema, createGenerator, codeSpanNodeSchema, codeBlockNodeSchema, blockquoteNodeSchema, blockNodeSchema, ThematicBreakNode, TextNode, TableRowNode, TableNode, TableCellNode, StrongNode, StreamOptions, StreamEvent, SoftBreakNode, Position, ParseResult, ParseOptions, ParentNode, ParagraphNode, Node, MarkdownDocument, LiteralNode, ListNode, ListItemNode, LinkReferenceDefinition, LinkNode, InlineNode, ImageNode, HtmlToMarkdownOptions, HtmlRenderOptions, HtmlInlineNode, HtmlBlockNode, HeadingNode, HardBreakNode, GenerateOptions, EmphasisNode, DocumentNode, DEFAULT_MAX_BUFFER_SIZE, CodeSpanNode, CodeBlockNode, BlockquoteNode, BlockNode, BatchParsedMarkdownFile, BatchMarkdownStreamEvent, BatchMarkdownFileInput };
|
package/package.json
CHANGED
|
@@ -3,24 +3,21 @@
|
|
|
3
3
|
"url": "https://github.com/F-O-T/contentta-nx/issues"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"zod": "4.
|
|
6
|
+
"zod": "4.3.6"
|
|
7
7
|
},
|
|
8
8
|
"description": "CommonMark compliant markdown parser with AST generation and streaming support",
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@biomejs/biome": "2.3.
|
|
11
|
-
"@types/bun": "1.3.
|
|
12
|
-
"bumpp": "10.
|
|
13
|
-
"bunup": "0.16.
|
|
10
|
+
"@biomejs/biome": "2.3.12",
|
|
11
|
+
"@types/bun": "1.3.6",
|
|
12
|
+
"bumpp": "10.4.0",
|
|
13
|
+
"bunup": "0.16.20",
|
|
14
14
|
"typescript": "5.9.3"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
"import":
|
|
20
|
-
|
|
21
|
-
"types": "./dist/index.d.ts"
|
|
22
|
-
},
|
|
23
|
-
"types": "./src/index.ts"
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"default": "./dist/index.js"
|
|
24
21
|
},
|
|
25
22
|
"./package.json": "./package.json"
|
|
26
23
|
},
|
|
@@ -29,6 +26,7 @@
|
|
|
29
26
|
],
|
|
30
27
|
"homepage": "https://github.com/F-O-T/contentta-nx/blob/master/libraries/markdown",
|
|
31
28
|
"license": "MIT",
|
|
29
|
+
"main": "./dist/index.js",
|
|
32
30
|
"module": "./dist/index.js",
|
|
33
31
|
"name": "@f-o-t/markdown",
|
|
34
32
|
"peerDependencies": {
|
|
@@ -59,5 +57,5 @@
|
|
|
59
57
|
},
|
|
60
58
|
"type": "module",
|
|
61
59
|
"types": "./dist/index.d.ts",
|
|
62
|
-
"version": "1.0.
|
|
60
|
+
"version": "1.0.2"
|
|
63
61
|
}
|