markdown-to-jsx 9.8.2 → 9.9.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/dist/native.d.cts CHANGED
@@ -64,13 +64,15 @@ type RequireAtLeastOne<
64
64
  inList?: boolean;
65
65
  /** true if parsing in an inline context (subset of rules around formatting and links) */
66
66
  inline?: boolean;
67
+ /** internal (react-native renderer): the enclosing subtree is already known inline-safe, so a nested inline container can skip re-deriving it */
68
+ inlineSafe?: boolean;
67
69
  /** use this for the `key` prop */
68
70
  key?: string | number;
69
- /** reference definitions (footnotes are stored with '^' prefix) */
71
+ /** reference definitions (footnotes are stored with '^' prefix); footnotes carry no title */
70
72
  refs?: {
71
73
  [key: string]: {
72
74
  target: string;
73
- title: string;
75
+ title: string | undefined;
74
76
  };
75
77
  };
76
78
  /** current recursion depth during rendering */
@@ -83,6 +85,8 @@ type RequireAtLeastOne<
83
85
  _htmlDepth?: number;
84
86
  /** internal: set by collectReferenceDefinitions when input ends inside an unclosed fence */
85
87
  _endsInsideFence?: boolean;
88
+ /** internal: true when the current block content cannot hold the document's streaming edge, so streaming suppression can be skipped */
89
+ _notAtEdge?: boolean;
86
90
  /** internal: enable hard/soft line-break processing in parseInline (paragraph inline content) */
87
91
  _breaks?: boolean;
88
92
  /** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
@@ -267,11 +271,11 @@ type RequireAtLeastOne<
267
271
  */
268
272
  export interface ReferenceCollectionNode {
269
273
  type: typeof RuleType.refCollection;
270
- /** Map of reference labels to their definitions */
274
+ /** Map of reference labels to their definitions; footnotes carry no title */
271
275
  refs: {
272
276
  [key: string]: {
273
277
  target: string;
274
- title: string;
278
+ title: string | undefined;
275
279
  };
276
280
  };
277
281
  }
@@ -577,6 +581,8 @@ interface NativeStyles {
577
581
  heading5?: StyleProp<TextStyle>;
578
582
  heading6?: StyleProp<TextStyle>;
579
583
  link?: StyleProp<TextStyle>;
584
+ /** Footnote reference marker, rendered as a Unicode superscript for numeric identifiers. */
585
+ footnote?: StyleProp<TextStyle>;
580
586
  image?: StyleProp<ImageStyle>;
581
587
  codeBlock?: StyleProp<ViewStyle>;
582
588
  codeInline?: StyleProp<TextStyle>;
@@ -590,13 +596,23 @@ interface NativeStyles {
590
596
  table?: StyleProp<ViewStyle>;
591
597
  tableHeader?: StyleProp<ViewStyle>;
592
598
  tableHeaderCell?: StyleProp<ViewStyle>;
599
+ /** Text run inside header cells, bold by default. */
600
+ tableHeaderText?: StyleProp<TextStyle>;
593
601
  tableRow?: StyleProp<ViewStyle>;
594
602
  tableCell?: StyleProp<ViewStyle>;
603
+ /** Vertical grid divider drawn on every cell but the last in a row. */
604
+ tableCellDivider?: StyleProp<ViewStyle>;
605
+ /** Horizontal grid divider drawn under every row but the last. */
606
+ tableRowDivider?: StyleProp<ViewStyle>;
595
607
  em?: StyleProp<TextStyle>;
596
608
  strong?: StyleProp<TextStyle>;
597
609
  del?: StyleProp<TextStyle>;
598
610
  mark?: StyleProp<TextStyle>;
599
611
  gfmTask?: StyleProp<ViewStyle>;
612
+ /** Accent fill layered over gfmTask when the task is completed. */
613
+ gfmTaskChecked?: StyleProp<ViewStyle>;
614
+ /** Checkmark glyph drawn inside a completed GFM task box. */
615
+ checkmark?: StyleProp<TextStyle>;
600
616
  div?: StyleProp<ViewStyle>;
601
617
  section?: StyleProp<ViewStyle>;
602
618
  article?: StyleProp<ViewStyle>;
package/dist/native.d.ts CHANGED
@@ -64,13 +64,15 @@ type RequireAtLeastOne<
64
64
  inList?: boolean;
65
65
  /** true if parsing in an inline context (subset of rules around formatting and links) */
66
66
  inline?: boolean;
67
+ /** internal (react-native renderer): the enclosing subtree is already known inline-safe, so a nested inline container can skip re-deriving it */
68
+ inlineSafe?: boolean;
67
69
  /** use this for the `key` prop */
68
70
  key?: string | number;
69
- /** reference definitions (footnotes are stored with '^' prefix) */
71
+ /** reference definitions (footnotes are stored with '^' prefix); footnotes carry no title */
70
72
  refs?: {
71
73
  [key: string]: {
72
74
  target: string;
73
- title: string;
75
+ title: string | undefined;
74
76
  };
75
77
  };
76
78
  /** current recursion depth during rendering */
@@ -83,6 +85,8 @@ type RequireAtLeastOne<
83
85
  _htmlDepth?: number;
84
86
  /** internal: set by collectReferenceDefinitions when input ends inside an unclosed fence */
85
87
  _endsInsideFence?: boolean;
88
+ /** internal: true when the current block content cannot hold the document's streaming edge, so streaming suppression can be skipped */
89
+ _notAtEdge?: boolean;
86
90
  /** internal: enable hard/soft line-break processing in parseInline (paragraph inline content) */
87
91
  _breaks?: boolean;
88
92
  /** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
@@ -267,11 +271,11 @@ type RequireAtLeastOne<
267
271
  */
268
272
  export interface ReferenceCollectionNode {
269
273
  type: typeof RuleType.refCollection;
270
- /** Map of reference labels to their definitions */
274
+ /** Map of reference labels to their definitions; footnotes carry no title */
271
275
  refs: {
272
276
  [key: string]: {
273
277
  target: string;
274
- title: string;
278
+ title: string | undefined;
275
279
  };
276
280
  };
277
281
  }
@@ -577,6 +581,8 @@ interface NativeStyles {
577
581
  heading5?: StyleProp<TextStyle>;
578
582
  heading6?: StyleProp<TextStyle>;
579
583
  link?: StyleProp<TextStyle>;
584
+ /** Footnote reference marker, rendered as a Unicode superscript for numeric identifiers. */
585
+ footnote?: StyleProp<TextStyle>;
580
586
  image?: StyleProp<ImageStyle>;
581
587
  codeBlock?: StyleProp<ViewStyle>;
582
588
  codeInline?: StyleProp<TextStyle>;
@@ -590,13 +596,23 @@ interface NativeStyles {
590
596
  table?: StyleProp<ViewStyle>;
591
597
  tableHeader?: StyleProp<ViewStyle>;
592
598
  tableHeaderCell?: StyleProp<ViewStyle>;
599
+ /** Text run inside header cells, bold by default. */
600
+ tableHeaderText?: StyleProp<TextStyle>;
593
601
  tableRow?: StyleProp<ViewStyle>;
594
602
  tableCell?: StyleProp<ViewStyle>;
603
+ /** Vertical grid divider drawn on every cell but the last in a row. */
604
+ tableCellDivider?: StyleProp<ViewStyle>;
605
+ /** Horizontal grid divider drawn under every row but the last. */
606
+ tableRowDivider?: StyleProp<ViewStyle>;
595
607
  em?: StyleProp<TextStyle>;
596
608
  strong?: StyleProp<TextStyle>;
597
609
  del?: StyleProp<TextStyle>;
598
610
  mark?: StyleProp<TextStyle>;
599
611
  gfmTask?: StyleProp<ViewStyle>;
612
+ /** Accent fill layered over gfmTask when the task is completed. */
613
+ gfmTaskChecked?: StyleProp<ViewStyle>;
614
+ /** Checkmark glyph drawn inside a completed GFM task box. */
615
+ checkmark?: StyleProp<TextStyle>;
600
616
  div?: StyleProp<ViewStyle>;
601
617
  section?: StyleProp<ViewStyle>;
602
618
  article?: StyleProp<ViewStyle>;