@portabletext/markdown 1.1.4 → 1.3.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 CHANGED
@@ -70,12 +70,14 @@ const markdown = portableTextToMarkdown([
70
70
  | Blockquotes | ✅ | ✅ |
71
71
  | Ordered lists | ✅ | ✅ |
72
72
  | Unordered lists | ✅ | ✅ |
73
+ | Task lists | ✅\* | ✅\* |
73
74
  | Nested lists | ✅ | ✅ |
74
75
  | Code blocks | ✅ | ✅\* |
75
76
  | Horizontal rules | ✅ | ✅\* |
76
77
  | Images | ✅ | ✅\* |
77
78
  | Tables | ✅\* | ✅\* |
78
79
  | HTML blocks | ✅ | ✅\* |
80
+ | Callouts | ✅\* | ✅\* |
79
81
 
80
82
  \* Requires custom configuration (see usage below)
81
83
 
@@ -160,14 +162,14 @@ Out of the box, the library includes sensible defaults for both. Customize them
160
162
 
161
163
  The default schema includes the following definitions:
162
164
 
163
- | Type | Values |
164
- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
165
- | `styles` | `'normal'`, `'h1'`, `'h2'`, `'h3'`, `'h4'`, `'h5'`, `'h6'`, `'blockquote'` |
166
- | `lists` | `'number'`, `'bullet'` |
167
- | `decorators` | `'strong'`, `'em'`, `'code'`, `'strike-through'` |
168
- | `annotations` | `'link'` (fields: `'href'`, `'title'`) |
169
- | `blockObjects` | `'code'` (fields: `'language'`, `'code'`), `'image'` (fields: `'src'`, `'alt'`, `'title'`), `'horizontal-rule'`, `'html'` (fields: `'html'`), `'table'` (fields: `'headerRows'`, `'rows'`) |
170
- | `inlineObjects` | `'image'` (fields: `'src'`, `'alt'`, `'title'`) |
165
+ | Type | Values |
166
+ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
167
+ | `styles` | `'normal'`, `'h1'`, `'h2'`, `'h3'`, `'h4'`, `'h5'`, `'h6'`, `'blockquote'` |
168
+ | `lists` | `'number'`, `'bullet'` |
169
+ | `decorators` | `'strong'`, `'em'`, `'code'`, `'strike-through'` |
170
+ | `annotations` | `'link'` (fields: `'href'`, `'title'`) |
171
+ | `blockObjects` | `'code'` (fields: `'language'`, `'code'`), `'image'` (fields: `'src'`, `'alt'`, `'title'`), `'horizontal-rule'`, `'html'` (fields: `'html'`), `'table'` (fields: `'headerRows'`, `'rows'`), `'callout'` (fields: `'tone'`, `'content'`) |
172
+ | `inlineObjects` | `'image'` (fields: `'src'`, `'alt'`, `'title'`) |
171
173
 
172
174
  To use a custom Schema, import `compileSchema` and `defineSchema` from `@portabletext/schema`:
173
175
 
@@ -205,6 +207,7 @@ Matchers map Markdown concepts to Portable Text types defined in the Schema. Eac
205
207
  | | `blockquote` | `>` blockquotes | `'blockquote'` |
206
208
  | `listItem` | `bullet` | `- ` or `* ` lists | `'bullet'` |
207
209
  | | `number` | `1. ` ordered lists | `'number'` |
210
+ | | `task` | `- [ ]` / `- [x]` items | `'task'` |
208
211
  | `marks` | `strong` | `**bold**` | `'strong'` |
209
212
  | | `em` | `*italic*` | `'em'` |
210
213
  | | `code` | `` `inline code` `` | `'code'` |
@@ -214,6 +217,9 @@ Matchers map Markdown concepts to Portable Text types defined in the Schema. Eac
214
217
  | | `horizontalRule` | `---` | `'horizontal-rule'` |
215
218
  | | `image` | `![alt](src)` | `'image'` |
216
219
  | | `html` | HTML blocks | `'html'` |
220
+ | | `callout` | `> [!NOTE]`, etc. | `'callout'` |
221
+ | | `blockquote` | `>` blockquotes | `'blockquote'` |
222
+ | | `list` | `- ` or `1. ` lists | `'list'` |
217
223
 
218
224
  #### Configuring matchers
219
225
 
@@ -262,6 +268,77 @@ markdownToPortableText(markdown, {
262
268
  })
263
269
  ```
264
270
 
271
+ **List matcher:** By default, lists are emitted as flat text blocks with `listItem` and `level` fields, and adjacent blocks form a list at render time. If your schema models lists as a structural block-object instead (a `list` type with an `items` array holding `list-item` objects, each with a `content` array), provide a `types.list` matcher to opt into that shape:
272
+
273
+ ```ts
274
+ markdownToPortableText(markdown, {
275
+ schema: schemaWithList,
276
+ types: {
277
+ list: ({context, value}) => ({
278
+ _type: 'list',
279
+ _key: context.keyGenerator(),
280
+ kind: value.kind, // 'bullet' | 'number' | 'task'
281
+ items: value.items, // each item: {_type, _key, checked?, content: [...]}
282
+ }),
283
+ },
284
+ })
285
+ ```
286
+
287
+ The matcher receives `value.items` already assembled. Each item's `content` array holds whatever blocks the markdown produced inside the item: text blocks, code blocks, callouts, images, even nested lists. `kind` is promoted to `'task'` automatically when any item carries a GFM checkbox (`- [ ]` / `- [x]`); items only carry a `checked` field when the markdown actually has one. If the matcher returns `undefined`, the parser falls back to flat-list parsing for that list.
288
+
289
+ Without `types.list`, the existing flat-block path runs unchanged.
290
+
291
+ **GFM task lists** (`- [ ]` / `- [x]`): Task lists are recognized when the schema declares a `task` list item. Without a `task` definition, the checkbox markers are stripped from the text and the items render as their surrounding list type (bullet or number). With a `task` definition, items carrying a checkbox become text blocks with `listItem: 'task'` and a `checked: boolean` field; items without a checkbox keep their surrounding list type.
292
+
293
+ ```ts
294
+ markdownToPortableText('- [x] done\n- [ ] todo', {
295
+ schema: compileSchema(
296
+ defineSchema({
297
+ lists: [{name: 'bullet'}, {name: 'task'}],
298
+ }),
299
+ ),
300
+ })
301
+ // → [
302
+ // {_type: 'block', listItem: 'task', level: 1, checked: true, children: [{text: 'done', ...}], ...},
303
+ // {_type: 'block', listItem: 'task', level: 1, checked: false, children: [{text: 'todo', ...}], ...},
304
+ // ]
305
+ ```
306
+
307
+ If your schema uses a different name for the task list type (e.g. `'todo'`), provide a custom `listItem.task` matcher:
308
+
309
+ ```ts
310
+ markdownToPortableText(markdown, {
311
+ schema: compileSchema(defineSchema({lists: [{name: 'todo'}]})),
312
+ listItem: {
313
+ task: ({context}) =>
314
+ context.schema.lists.find((list) => list.name === 'todo')?.name,
315
+ },
316
+ })
317
+ ```
318
+
319
+ When emitting Portable Text back to Markdown, blocks with `listItem: 'task'` render as `- [x] ` or `- [ ] ` based on the `checked` field.
320
+
321
+ **Blockquote matcher:** By default, blockquotes are emitted as flat text blocks with `style: 'blockquote'`, and adjacent blocks form a visual blockquote at render time. If your schema models a blockquote as a structural block-object instead (a `blockquote` type with a `content` array), provide a `types.blockquote` matcher to opt into that shape:
322
+
323
+ ```ts
324
+ markdownToPortableText(markdown, {
325
+ schema: schemaWithBlockquote,
326
+ types: {
327
+ blockquote: ({context, value}) => ({
328
+ _type: 'blockquote',
329
+ _key: context.keyGenerator(),
330
+ content: value.content, // array of blocks the markdown produced inside the blockquote
331
+ }),
332
+ },
333
+ })
334
+ ```
335
+
336
+ The matcher receives `value.content` already assembled. The array holds whatever blocks the markdown produced inside the blockquote: text blocks, code blocks, images, even nested blockquotes. GFM alerts (`> [!NOTE]`, `> [!TIP]`, etc.) use a different token stream and produce callouts instead, so `types.blockquote` and `types.callout` can be registered side-by-side without conflict.
337
+
338
+ If the matcher returns `undefined`, the parser falls back to flat-style by re-emitting the content blocks with `style: 'blockquote'`.
339
+
340
+ Without `types.blockquote`, the existing flat-block path runs unchanged.
341
+
265
342
  Matchers receive:
266
343
 
267
344
  - `context.schema` – the compiled schema to validate against
@@ -294,6 +371,8 @@ The default code block matcher requires the schema type to have a `'code'` field
294
371
 
295
372
  **HTML blocks** (like `<div>...</div>`) become `'html'` block objects with the raw HTML in the `'html'` field. Inline HTML is controlled by the `html.inline` option.
296
373
 
374
+ **Callouts** use the `> [!TYPE]` syntax (GFM alerts) where `TYPE` is one of `NOTE`, `TIP`, `WARNING`, `CAUTION`, or `IMPORTANT`. They become `'callout'` block objects with a `'tone'` field (the lowercased type name) and a `'content'` field (an array of Portable Text blocks). When the schema doesn't include a `'callout'` block object, the content falls back to blockquote-styled blocks.
375
+
297
376
  #### Other options
298
377
 
299
378
  ```ts
@@ -370,24 +449,24 @@ The conversion is driven by **Renderers**: functions that render Portable Text e
370
449
 
371
450
  #### Default renderers
372
451
 
373
- | Group | Renderer | Renders | Output |
374
- | ------------------- | ---------------- | ---------------------------- | --------------------- |
375
- | `block` | `normal` | Paragraphs | `{children}` |
376
- | | `h1`–`h6` | Headings | `# `–`###### ` |
377
- | | `blockquote` | Blockquotes | `> {children}` |
378
- | `marks` | `strong` | Bold text | `**{children}**` |
379
- | | `em` | Italic text | `_{children}_` |
380
- | | `code` | Inline code | `` `{children}` `` |
381
- | | `underline` | Underlined text | `<u>{children}</u>` |
382
- | | `strike-through` | Strikethrough | `~~{children}~~` |
383
- | | `link` | Links | `[{children}](url)` |
384
- | `listItem` | | List items (bullet & number) | `- ` or `1. ` |
385
- | `hardBreak` | | Line breaks within blocks | ` \n` (two spaces) |
386
- | `blockSpacing` | | Spacing between blocks | `\n\n`, `\n`, `\n>\n` |
387
- | `unknownType` | | Unknown block types | JSON code block |
388
- | `unknownBlockStyle` | | Unknown block styles | `{children}` |
389
- | `unknownListItem` | | Unknown list item types | `- {children}` |
390
- | `unknownMark` | | Unknown marks | `{children}` |
452
+ | Group | Renderer | Renders | Output |
453
+ | ------------------- | ---------------- | --------------------------------- | ------------------------ |
454
+ | `block` | `normal` | Paragraphs | `{children}` |
455
+ | | `h1`–`h6` | Headings | `# `–`###### ` |
456
+ | | `blockquote` | Blockquotes | `> {children}` |
457
+ | `marks` | `strong` | Bold text | `**{children}**` |
458
+ | | `em` | Italic text | `_{children}_` |
459
+ | | `code` | Inline code | `` `{children}` `` |
460
+ | | `underline` | Underlined text | `<u>{children}</u>` |
461
+ | | `strike-through` | Strikethrough | `~~{children}~~` |
462
+ | | `link` | Links | `[{children}](url)` |
463
+ | `listItem` | | List items (bullet, number, task) | `- `, `1. `, or `- [x] ` |
464
+ | `hardBreak` | | Line breaks within blocks | ` \n` (two spaces) |
465
+ | `blockSpacing` | | Spacing between blocks | `\n\n`, `\n`, `\n>\n` |
466
+ | `unknownType` | | Unknown block types | JSON code block |
467
+ | `unknownBlockStyle` | | Unknown block styles | `{children}` |
468
+ | `unknownListItem` | | Unknown list item types | `- {children}` |
469
+ | `unknownMark` | | Unknown marks | `{children}` |
391
470
 
392
471
  Unknown types render as JSON code blocks by default; unknown styles, list items, and marks pass through their children.
393
472
 
@@ -402,7 +481,8 @@ Provide custom renderers to control how Portable Text renders to Markdown.
402
481
  ```ts
403
482
  portableTextToMarkdown(blocks, {
404
483
  types: {
405
- callout: ({value}) => `> **${value.title}**\n> ${value.text}`,
484
+ // Render a custom "chart" block object
485
+ chart: ({value}) => `![${value.title}](${value.imageUrl})`,
406
486
  },
407
487
  })
408
488
  ```
@@ -424,32 +504,41 @@ portableTextToMarkdown(blocks, {
424
504
 
425
505
  ```ts
426
506
  import {
507
+ DefaultBlockquoteObjectRenderer,
508
+ DefaultCalloutRenderer,
427
509
  DefaultCodeBlockRenderer,
428
510
  DefaultHorizontalRuleRenderer,
429
511
  DefaultHtmlRenderer,
430
512
  DefaultImageRenderer,
513
+ DefaultListRenderer,
431
514
  DefaultTableRenderer,
432
515
  portableTextToMarkdown,
433
516
  } from '@portabletext/markdown'
434
517
 
435
518
  portableTextToMarkdown(blocks, {
436
519
  types: {
520
+ 'blockquote': DefaultBlockquoteObjectRenderer,
521
+ 'callout': DefaultCalloutRenderer,
437
522
  'code': DefaultCodeBlockRenderer,
438
523
  'horizontal-rule': DefaultHorizontalRuleRenderer,
439
524
  'html': DefaultHtmlRenderer,
440
525
  'image': DefaultImageRenderer,
526
+ 'list': DefaultListRenderer,
441
527
  'table': DefaultTableRenderer,
442
528
  },
443
529
  })
444
530
  ```
445
531
 
446
- | Renderer | Expected value | Output |
447
- | ------------------------------- | --------------------------------------------- | ---------------------- |
448
- | `DefaultCodeBlockRenderer` | `{code: string, language?: string}` | ` ```lang\ncode\n``` ` |
449
- | `DefaultHorizontalRuleRenderer` | (no fields required) | `---` |
450
- | `DefaultHtmlRenderer` | `{html: string}` | Raw HTML |
451
- | `DefaultImageRenderer` | `{src: string, alt?: string, title?: string}` | `![alt](src "title")` |
452
- | `DefaultTableRenderer` | `{rows: [...], headerRows?: number}` | Markdown table |
532
+ | Renderer | Expected value | Output |
533
+ | --------------------------------- | ------------------------------------------------------ | ---------------------- |
534
+ | `DefaultBlockquoteObjectRenderer` | `{content: PortableTextBlock[]}` | `> content` |
535
+ | `DefaultCalloutRenderer` | `{tone: string, content: PortableTextBlock[]}` | `> [!TYPE]\n> content` |
536
+ | `DefaultCodeBlockRenderer` | `{code: string, language?: string}` | ` ```lang\ncode\n``` ` |
537
+ | `DefaultHorizontalRuleRenderer` | (no fields required) | `---` |
538
+ | `DefaultHtmlRenderer` | `{html: string}` | Raw HTML |
539
+ | `DefaultImageRenderer` | `{src: string, alt?: string, title?: string}` | `![alt](src "title")` |
540
+ | `DefaultListRenderer` | `{kind: 'bullet' \| 'number' \| 'task', items: [...]}` | Markdown list |
541
+ | `DefaultTableRenderer` | `{rows: [...], headerRows?: number}` | Markdown table |
453
542
 
454
543
  #### What renderers receive
455
544
 
package/dist/index.d.ts CHANGED
@@ -461,6 +461,50 @@ declare const DefaultTableRenderer: PortableTextTypeRenderer<{
461
461
  }>;
462
462
  }>;
463
463
  }>;
464
+ /**
465
+ * @public
466
+ */
467
+ declare const DefaultCalloutRenderer: PortableTextTypeRenderer<{
468
+ _type: 'callout';
469
+ tone: string;
470
+ content: Array<PortableTextBlock$1>;
471
+ }>;
472
+ /**
473
+ * Renders a structural blockquote block-object (the `types.blockquote` shape
474
+ * produced by `markdownToPortableText` when a `types.blockquote` matcher is
475
+ * provided) back to Markdown. Each content block is rendered via the
476
+ * recursive renderer pipeline, joined with blank lines, and every line is
477
+ * prefixed with `> ` to form a Markdown blockquote.
478
+ *
479
+ * Distinct from `DefaultBlockquoteRenderer`, which renders flat-path text
480
+ * blocks with `style: 'blockquote'`.
481
+ *
482
+ * @public
483
+ */
484
+ declare const DefaultBlockquoteObjectRenderer: PortableTextTypeRenderer<{
485
+ _type: 'blockquote';
486
+ content: Array<PortableTextBlock$1>;
487
+ }>;
488
+ /**
489
+ * Renders a structural list block-object (the `types.list` shape produced by
490
+ * `markdownToPortableText` when a `types.list` matcher is provided) back to
491
+ * Markdown. Items render as `- ` for `kind: 'bullet'`, `1. `/`2. ` for `'number'`,
492
+ * and `- [x] ` / `- [ ] ` for `'task'`. Items can hold any blocks - text blocks,
493
+ * code blocks, callouts, images, and nested lists - and content other than the
494
+ * leading text block is indented to keep it inside the item.
495
+ *
496
+ * @public
497
+ */
498
+ declare const DefaultListRenderer: PortableTextTypeRenderer<{
499
+ _type: 'list';
500
+ kind: 'bullet' | 'number' | 'task';
501
+ items: Array<{
502
+ _type: 'list-item';
503
+ _key: string;
504
+ checked?: boolean;
505
+ content: Array<PortableTextBlock$1 | TypedObject>;
506
+ }>;
507
+ }>;
464
508
  /**
465
509
  * Matcher function for mapping markdown elements to Portable Text block styles.
466
510
  *
@@ -555,6 +599,7 @@ type Options = {
555
599
  listItem?: {
556
600
  number?: ListItemMatcher;
557
601
  bullet?: ListItemMatcher;
602
+ task?: ListItemMatcher;
558
603
  };
559
604
  types?: {
560
605
  code?: ObjectMatcher<{
@@ -582,6 +627,22 @@ type Options = {
582
627
  alt: string;
583
628
  title: string | undefined;
584
629
  }>;
630
+ callout?: ObjectMatcher<{
631
+ tone: string;
632
+ content: Array<PortableTextBlock>;
633
+ }>;
634
+ blockquote?: ObjectMatcher<{
635
+ content: Array<PortableTextBlock>;
636
+ }>;
637
+ list?: ObjectMatcher<{
638
+ kind: 'bullet' | 'number' | 'task';
639
+ items: Array<{
640
+ _type: 'list-item';
641
+ _key: string;
642
+ checked?: boolean;
643
+ content: Array<PortableTextBlock | PortableTextObject>;
644
+ }>;
645
+ }>;
585
646
  };
586
647
  html?: {
587
648
  /**
@@ -600,5 +661,5 @@ type Options = {
600
661
  * @public
601
662
  */
602
663
  declare function markdownToPortableText(markdown: string, options?: Options): Array<PortableTextBlock>;
603
- export { type AnnotationMatcher, type BlockSpacingRenderer, type DecoratorMatcher, DefaultBlockSpacingRenderer, DefaultBlockquoteRenderer, DefaultCodeBlockRenderer, DefaultCodeRenderer, DefaultEmRenderer, DefaultH1Renderer, DefaultH2Renderer, DefaultH3Renderer, DefaultH4Renderer, DefaultH5Renderer, DefaultH6Renderer, DefaultHardBreakRenderer, DefaultHorizontalRuleRenderer, DefaultHtmlRenderer, DefaultImageRenderer, DefaultLinkRenderer, DefaultListItemRenderer, DefaultNormalRenderer, DefaultStrikeThroughRenderer, DefaultStrongRenderer, DefaultTableRenderer, DefaultUnderlineRenderer, type ListItemMatcher, type ObjectMatcher, type PortableTextBlockRenderer, type PortableTextListItemRenderer, type PortableTextMarkRenderer, type PortableTextMarkRendererOptions, type PortableTextRenderer, type PortableTextRendererOptions, type PortableTextRenderers, type PortableTextTypeRenderer, type PortableTextTypeRendererOptions, type StyleMatcher, markdownToPortableText, portableTextToMarkdown };
664
+ export { type AnnotationMatcher, type BlockSpacingRenderer, type DecoratorMatcher, DefaultBlockSpacingRenderer, DefaultBlockquoteObjectRenderer, DefaultBlockquoteRenderer, DefaultCalloutRenderer, DefaultCodeBlockRenderer, DefaultCodeRenderer, DefaultEmRenderer, DefaultH1Renderer, DefaultH2Renderer, DefaultH3Renderer, DefaultH4Renderer, DefaultH5Renderer, DefaultH6Renderer, DefaultHardBreakRenderer, DefaultHorizontalRuleRenderer, DefaultHtmlRenderer, DefaultImageRenderer, DefaultLinkRenderer, DefaultListItemRenderer, DefaultListRenderer, DefaultNormalRenderer, DefaultStrikeThroughRenderer, DefaultStrongRenderer, DefaultTableRenderer, DefaultUnderlineRenderer, type ListItemMatcher, type ObjectMatcher, type PortableTextBlockRenderer, type PortableTextListItemRenderer, type PortableTextMarkRenderer, type PortableTextMarkRendererOptions, type PortableTextRenderer, type PortableTextRendererOptions, type PortableTextRenderers, type PortableTextTypeRenderer, type PortableTextTypeRendererOptions, type StyleMatcher, markdownToPortableText, portableTextToMarkdown };
604
665
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["TypedObject","ArbitraryTypedObject","PortableTextBlock","M","C","S","L","PortableTextMarkDefinition","PortableTextSpan","PortableTextBlockStyle","PortableTextListItemType","PortableTextListItemBlock","Omit","PortableTextLink"],"sources":["../../../node_modules/.pnpm/@portabletext+types@4.0.2/node_modules/@portabletext/types/dist/index.d.ts","../src/from-portable-text/renderers/block-spacing.ts","../src/from-portable-text/types.ts","../src/from-portable-text/portable-text-to-markdown.ts","../src/from-portable-text/renderers/hard-break.ts","../src/from-portable-text/renderers/list-item.ts","../src/from-portable-text/renderers/style.ts","../src/from-portable-text/renderers/marks.ts","../src/from-portable-text/renderers/type.ts","../src/to-portable-text/matchers.ts","../src/to-portable-text/markdown-to-portable-text.ts"],"sourcesContent":["/**\n* Any object with an `_type` property (which is required in portable text arrays),\n* as well as a _potential_ `_key` (highly encouraged)\n* @public\n*/\ninterface TypedObject {\n /**\n * Identifies the type of object/span this is, and is used to pick the correct React components\n * to use when rendering a span or inline object with this type.\n */\n _type: string;\n /**\n * Uniquely identifies this object within its parent block.\n * Not _required_, but highly encouraged.\n */\n _key?: string;\n}\n/**\n* Any object with an `_type` that is a string. Can hold any other properties.\n* @public\n*/\ntype ArbitraryTypedObject = TypedObject & {\n [key: string]: any;\n};\n/**\n* A Portable Text Block can be thought of as one paragraph, quote or list item.\n* In other words, it is a container for text, that can have a visual style associated with it.\n* The actual text value is stored in portable text spans inside of the `childen` array.\n*\n* @typeParam M - Mark types that be used for text spans\n* @typeParam C - Types allowed as children of this block\n* @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n* @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n* @public\n*/\ninterface PortableTextBlock<M extends PortableTextMarkDefinition = PortableTextMarkDefinition, C extends TypedObject = ArbitraryTypedObject | PortableTextSpan, S extends string = PortableTextBlockStyle, L extends string = PortableTextListItemType> extends TypedObject {\n /**\n * Type name identifying this as a portable text block.\n * All items within a portable text array should have a `_type` property.\n *\n * Usually 'block', but can be customized to other values\n */\n _type: \"block\" | (string & {});\n /**\n * A key that identifies this block uniquely within the parent array. Used to more easily address\n * the block when editing collaboratively, but is also very useful for keys inside of React and\n * other rendering frameworks that can use keys to optimize operations.\n */\n _key?: string;\n /**\n * Array of inline items for this block. Usually contain text spans, but can be\n * configured to include inline objects of other types as well.\n */\n children: C[];\n /**\n * Array of mark definitions used in child text spans. By having them be on the block level,\n * the same mark definition can be reused for multiple text spans, which is often the case\n * with nested marks.\n */\n markDefs?: M[];\n /**\n * Visual style of the block\n * Common values: 'normal', 'blockquote', 'h1'...'h6'\n */\n style?: S;\n /**\n * If this block is a list item, identifies which style of list item this is\n * Common values: 'bullet', 'number', but can be configured\n */\n listItem?: L;\n /**\n * If this block is a list item, identifies which level of nesting it belongs within\n */\n level?: number;\n}\n/**\n* Strictly speaking the same as a portable text block, but `listItem` is required\n*\n* @typeParam M - Mark types that be used for text spans\n* @typeParam C - Types allowed as children of this block\n* @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n* @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n* @public\n*/\ninterface PortableTextListItemBlock<M extends PortableTextMarkDefinition = PortableTextMarkDefinition, C extends TypedObject = PortableTextSpan, S extends string = PortableTextBlockStyle, L extends string = PortableTextListItemType> extends Omit<PortableTextBlock<M, C, S, L>, \"listItem\"> {\n listItem: L;\n}\n/**\n* A set of _common_ (but not required/standarized) block styles\n* @public\n*/\ntype PortableTextBlockStyle = \"normal\" | \"blockquote\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | (string & {});\n/**\n* A set of _common_ (but not required/standardized) list item types\n* @public\n*/\ntype PortableTextListItemType = \"bullet\" | \"number\" | (string & {});\n/**\n* A mark definition holds information for marked text. For instance, a text span could reference\n* a mark definition for a hyperlink, a geoposition, a reference to a document or anything that is\n* representable as a JSON object.\n* @public\n*/\ninterface PortableTextMarkDefinition {\n /**\n * Unknown properties\n */\n [key: string]: unknown;\n /**\n * Identifies the type of mark this is, and is used to pick the correct React components to use\n * when rendering a text span marked with this mark type.\n */\n _type: string;\n /**\n * Uniquely identifies this mark definition within the block\n */\n _key: string;\n}\n/**\n* A Portable Text Span holds a chunk of the actual text value of a Portable Text Block\n* @public\n*/\ninterface PortableTextSpan {\n /**\n * Type is always `span` for portable text spans, as these don't vary in shape\n */\n _type: \"span\";\n /**\n * Unique (within parent block) key for this portable text span\n */\n _key?: string;\n /**\n * The actual text value of this text span\n */\n text: string;\n /**\n * An array of marks this text span is annotated with, identified by its `_key`.\n * If the key cannot be found in the parent blocks mark definition, the mark is assumed to be a\n * decorator (a simpler mark without any properties - for instance `strong` or `em`)\n */\n marks?: string[];\n}\n/**\n* The simplest representation of a link\n* @public\n*/\ninterface PortableTextLink {\n _type: \"link\";\n href: string;\n}\nexport { ArbitraryTypedObject, PortableTextBlock, PortableTextBlockStyle, PortableTextLink, PortableTextListItemBlock, PortableTextListItemType, PortableTextMarkDefinition, PortableTextSpan, TypedObject };\n//# sourceMappingURL=index.d.ts.map"],"x_google_ignoreList":[0],"mappings":";;;;AAKqB;AAgBkB;UAhB7BA,WAAAA,CA8B4BO;EAA6BA;;;;EAAgHE,KAAAA,EAAAA,MAAAA;EAA2CC;;;;EAkCjNJ,IAAAA,CAAAA,EAAAA,MAAAA;;;AAlC8P;;;KAdtQL,oBAAAA,GAAuBD,WA+DqFA,GAAAA;EAAcQ,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;CAAqCC;;;;;;;;;;AAAiF;AAO1N;AAKE,UA7DnBP,mBAoEAK,CAAAA,UApE4BA,0BAoEF,GApE+BA,0BAoE/B,EAAA,UApEqEP,WAoErE,GApEmFC,oBAoEnF,GApE0GO,gBAoE1G,EAAA,UAAA,MAAA,GApE+IC,sBAoE/I,EAAA,UAAA,MAAA,GApE0LC,wBAoE1L,CAAA,SApE4NV,WAoE5N,CAAA;EAAA;;AC9FpC;AAQA;;ACV4B;EAE2B,KAAA,EAAA,OAAA,GAAA,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA;EAAf;;;;AASxC;EASA,IAAY,CAAA,EAA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,eVgBiQA;EAAGC,CAAAA;EAA3BJ,KAAAA,CAAAA,EAAAA;IAC1OI,IAAAA,CAAAA,EUdD,aVcCA,CAAAA;MADqOM,QAAAA,EAAAA,MAAAA,GAAAA,SAAAA;MAAI,IAAA,EAAA,MAAA;IAOhPH,CAAAA,CAAAA;IAKAC,cAAAA,CAAAA,EUxBgB,aVwBQ;IAOnBH,IAAAA,CAAAA,EU9BC,aV8BDA,CAAAA;MAmBAC,IAAAA,EAAAA,MAAgB;;ICjHd,KAAA,CAAA,ESiEA,aTjEoB,CAAA;MAQnB,UAAA,EAAA,MAAA,GAAA,SAqBZ;YSsCW;QRnEP,IAAW,EAAA,MAAA;QAAuC,KAAA,EAAA,KAAA;QAAf,KAAA,EQsEzB,KRtEyB,CAAA;UAChC,KAAA,EAAA,MAAA;UAAK,IAAA,EAAA,MAAA;UAAC,KAAA,EQwEG,KRxEH,CQwES,iBRxET,CAAA;QAQF,CAAA,CAAA;MASA,CAAA,CAAA;IAOA,CAAA,CAAA;IAQA,KAAA,CAAA,EQ4CA,aR5CA,CAAA;MAAmC,GAAA,EAAA,MAAA;MACJ,GAAA,EAAA,MAAA;MAAhC,KAAA,EAAA,MAAA,GAAA,SAAA;IAA+B,CAAA,CAAA;EAM9B,CAAA;EAAmC,IAAA,CAAA,EAAA;IACJ;;;AAS3C;;;;IAmBS,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA;EAWS,CAAA;CAAwB;;;;;;AAgBpC,iBQmGU,sBAAA,CRnGV,QAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EQqGM,ORrGN,CAAA,EQsGH,KRtGG,CQsGG,iBRtGH,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["TypedObject","ArbitraryTypedObject","PortableTextBlock","M","C","S","L","PortableTextMarkDefinition","PortableTextSpan","PortableTextBlockStyle","PortableTextListItemType","PortableTextListItemBlock","Omit","PortableTextLink"],"sources":["../../../node_modules/.pnpm/@portabletext+types@4.0.2/node_modules/@portabletext/types/dist/index.d.ts","../src/from-portable-text/renderers/block-spacing.ts","../src/from-portable-text/types.ts","../src/from-portable-text/portable-text-to-markdown.ts","../src/from-portable-text/renderers/hard-break.ts","../src/from-portable-text/renderers/list-item.ts","../src/from-portable-text/renderers/style.ts","../src/from-portable-text/renderers/marks.ts","../src/from-portable-text/renderers/type.ts","../src/to-portable-text/matchers.ts","../src/to-portable-text/markdown-to-portable-text.ts"],"sourcesContent":["/**\n* Any object with an `_type` property (which is required in portable text arrays),\n* as well as a _potential_ `_key` (highly encouraged)\n* @public\n*/\ninterface TypedObject {\n /**\n * Identifies the type of object/span this is, and is used to pick the correct React components\n * to use when rendering a span or inline object with this type.\n */\n _type: string;\n /**\n * Uniquely identifies this object within its parent block.\n * Not _required_, but highly encouraged.\n */\n _key?: string;\n}\n/**\n* Any object with an `_type` that is a string. Can hold any other properties.\n* @public\n*/\ntype ArbitraryTypedObject = TypedObject & {\n [key: string]: any;\n};\n/**\n* A Portable Text Block can be thought of as one paragraph, quote or list item.\n* In other words, it is a container for text, that can have a visual style associated with it.\n* The actual text value is stored in portable text spans inside of the `childen` array.\n*\n* @typeParam M - Mark types that be used for text spans\n* @typeParam C - Types allowed as children of this block\n* @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n* @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n* @public\n*/\ninterface PortableTextBlock<M extends PortableTextMarkDefinition = PortableTextMarkDefinition, C extends TypedObject = ArbitraryTypedObject | PortableTextSpan, S extends string = PortableTextBlockStyle, L extends string = PortableTextListItemType> extends TypedObject {\n /**\n * Type name identifying this as a portable text block.\n * All items within a portable text array should have a `_type` property.\n *\n * Usually 'block', but can be customized to other values\n */\n _type: \"block\" | (string & {});\n /**\n * A key that identifies this block uniquely within the parent array. Used to more easily address\n * the block when editing collaboratively, but is also very useful for keys inside of React and\n * other rendering frameworks that can use keys to optimize operations.\n */\n _key?: string;\n /**\n * Array of inline items for this block. Usually contain text spans, but can be\n * configured to include inline objects of other types as well.\n */\n children: C[];\n /**\n * Array of mark definitions used in child text spans. By having them be on the block level,\n * the same mark definition can be reused for multiple text spans, which is often the case\n * with nested marks.\n */\n markDefs?: M[];\n /**\n * Visual style of the block\n * Common values: 'normal', 'blockquote', 'h1'...'h6'\n */\n style?: S;\n /**\n * If this block is a list item, identifies which style of list item this is\n * Common values: 'bullet', 'number', but can be configured\n */\n listItem?: L;\n /**\n * If this block is a list item, identifies which level of nesting it belongs within\n */\n level?: number;\n}\n/**\n* Strictly speaking the same as a portable text block, but `listItem` is required\n*\n* @typeParam M - Mark types that be used for text spans\n* @typeParam C - Types allowed as children of this block\n* @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n* @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n* @public\n*/\ninterface PortableTextListItemBlock<M extends PortableTextMarkDefinition = PortableTextMarkDefinition, C extends TypedObject = PortableTextSpan, S extends string = PortableTextBlockStyle, L extends string = PortableTextListItemType> extends Omit<PortableTextBlock<M, C, S, L>, \"listItem\"> {\n listItem: L;\n}\n/**\n* A set of _common_ (but not required/standarized) block styles\n* @public\n*/\ntype PortableTextBlockStyle = \"normal\" | \"blockquote\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | (string & {});\n/**\n* A set of _common_ (but not required/standardized) list item types\n* @public\n*/\ntype PortableTextListItemType = \"bullet\" | \"number\" | (string & {});\n/**\n* A mark definition holds information for marked text. For instance, a text span could reference\n* a mark definition for a hyperlink, a geoposition, a reference to a document or anything that is\n* representable as a JSON object.\n* @public\n*/\ninterface PortableTextMarkDefinition {\n /**\n * Unknown properties\n */\n [key: string]: unknown;\n /**\n * Identifies the type of mark this is, and is used to pick the correct React components to use\n * when rendering a text span marked with this mark type.\n */\n _type: string;\n /**\n * Uniquely identifies this mark definition within the block\n */\n _key: string;\n}\n/**\n* A Portable Text Span holds a chunk of the actual text value of a Portable Text Block\n* @public\n*/\ninterface PortableTextSpan {\n /**\n * Type is always `span` for portable text spans, as these don't vary in shape\n */\n _type: \"span\";\n /**\n * Unique (within parent block) key for this portable text span\n */\n _key?: string;\n /**\n * The actual text value of this text span\n */\n text: string;\n /**\n * An array of marks this text span is annotated with, identified by its `_key`.\n * If the key cannot be found in the parent blocks mark definition, the mark is assumed to be a\n * decorator (a simpler mark without any properties - for instance `strong` or `em`)\n */\n marks?: string[];\n}\n/**\n* The simplest representation of a link\n* @public\n*/\ninterface PortableTextLink {\n _type: \"link\";\n href: string;\n}\nexport { ArbitraryTypedObject, PortableTextBlock, PortableTextBlockStyle, PortableTextLink, PortableTextListItemBlock, PortableTextListItemType, PortableTextMarkDefinition, PortableTextSpan, TypedObject };\n//# sourceMappingURL=index.d.ts.map"],"x_google_ignoreList":[0],"mappings":";;;;AAKqB;AAgBkB;UAhB7BA,WAAAA,CA8B4BO;EAA6BA;;;;EAAgHE,KAAAA,EAAAA,MAAAA;EAA2CC;;;;EAkCjNJ,IAAAA,CAAAA,EAAAA,MAAAA;;;AAlC8P;;;KAdtQL,oBAAAA,GAAuBD,WA+DqFA,GAAAA;EAAcQ,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;CAAqCC;;;;;;;;;;AAAiF;AAO1N;AAKE,UA7DnBP,mBAoEAK,CAAAA,UApE4BA,0BAoEF,GApE+BA,0BAoE/B,EAAA,UApEqEP,WAoErE,GApEmFC,oBAoEnF,GApE0GO,gBAoE1G,EAAA,UAAA,MAAA,GApE+IC,sBAoE/I,EAAA,UAAA,MAAA,GApE0LC,wBAoE1L,CAAA,SApE4NV,WAoE5N,CAAA;EAAA;;AC9FpC;AAQA;;ACV4B;EAE2B,KAAA,EAAA,OAAA,GAAA,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA;EAAf;;;;AASxC;EASA,IAAY,CAAA,EAAA,MAAA;EAOZ;AAQA;;;EACW,QAAA,EFUCI,CEVD,EAAA;EAA+B;AAM1C;;;;EAC0C,QAAA,CAAA,EFS7BD,CET6B,EAAA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