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/index.d.cts CHANGED
@@ -63,13 +63,15 @@ type RequireAtLeastOne<
63
63
  inList?: boolean;
64
64
  /** true if parsing in an inline context (subset of rules around formatting and links) */
65
65
  inline?: boolean;
66
+ /** internal (react-native renderer): the enclosing subtree is already known inline-safe, so a nested inline container can skip re-deriving it */
67
+ inlineSafe?: boolean;
66
68
  /** use this for the `key` prop */
67
69
  key?: string | number;
68
- /** reference definitions (footnotes are stored with '^' prefix) */
70
+ /** reference definitions (footnotes are stored with '^' prefix); footnotes carry no title */
69
71
  refs?: {
70
72
  [key: string]: {
71
73
  target: string;
72
- title: string;
74
+ title: string | undefined;
73
75
  };
74
76
  };
75
77
  /** current recursion depth during rendering */
@@ -82,6 +84,8 @@ type RequireAtLeastOne<
82
84
  _htmlDepth?: number;
83
85
  /** internal: set by collectReferenceDefinitions when input ends inside an unclosed fence */
84
86
  _endsInsideFence?: boolean;
87
+ /** internal: true when the current block content cannot hold the document's streaming edge, so streaming suppression can be skipped */
88
+ _notAtEdge?: boolean;
85
89
  /** internal: enable hard/soft line-break processing in parseInline (paragraph inline content) */
86
90
  _breaks?: boolean;
87
91
  /** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
@@ -266,11 +270,11 @@ type RequireAtLeastOne<
266
270
  */
267
271
  export interface ReferenceCollectionNode {
268
272
  type: typeof RuleType.refCollection;
269
- /** Map of reference labels to their definitions */
273
+ /** Map of reference labels to their definitions; footnotes carry no title */
270
274
  refs: {
271
275
  [key: string]: {
272
276
  target: string;
273
- title: string;
277
+ title: string | undefined;
274
278
  };
275
279
  };
276
280
  }
package/dist/index.d.ts CHANGED
@@ -63,13 +63,15 @@ type RequireAtLeastOne<
63
63
  inList?: boolean;
64
64
  /** true if parsing in an inline context (subset of rules around formatting and links) */
65
65
  inline?: boolean;
66
+ /** internal (react-native renderer): the enclosing subtree is already known inline-safe, so a nested inline container can skip re-deriving it */
67
+ inlineSafe?: boolean;
66
68
  /** use this for the `key` prop */
67
69
  key?: string | number;
68
- /** reference definitions (footnotes are stored with '^' prefix) */
70
+ /** reference definitions (footnotes are stored with '^' prefix); footnotes carry no title */
69
71
  refs?: {
70
72
  [key: string]: {
71
73
  target: string;
72
- title: string;
74
+ title: string | undefined;
73
75
  };
74
76
  };
75
77
  /** current recursion depth during rendering */
@@ -82,6 +84,8 @@ type RequireAtLeastOne<
82
84
  _htmlDepth?: number;
83
85
  /** internal: set by collectReferenceDefinitions when input ends inside an unclosed fence */
84
86
  _endsInsideFence?: boolean;
87
+ /** internal: true when the current block content cannot hold the document's streaming edge, so streaming suppression can be skipped */
88
+ _notAtEdge?: boolean;
85
89
  /** internal: enable hard/soft line-break processing in parseInline (paragraph inline content) */
86
90
  _breaks?: boolean;
87
91
  /** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
@@ -266,11 +270,11 @@ type RequireAtLeastOne<
266
270
  */
267
271
  export interface ReferenceCollectionNode {
268
272
  type: typeof RuleType.refCollection;
269
- /** Map of reference labels to their definitions */
273
+ /** Map of reference labels to their definitions; footnotes carry no title */
270
274
  refs: {
271
275
  [key: string]: {
272
276
  target: string;
273
- title: string;
277
+ title: string | undefined;
274
278
  };
275
279
  };
276
280
  }