markdown-to-jsx 9.8.1 → 9.8.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/html.d.cts CHANGED
@@ -81,8 +81,30 @@ type RequireAtLeastOne<
81
81
  _htmlDepth?: number;
82
82
  /** internal: set by collectReferenceDefinitions when input ends inside an unclosed fence */
83
83
  _endsInsideFence?: boolean;
84
+ /** internal: enable hard/soft line-break processing in parseInline (paragraph inline content) */
85
+ _breaks?: boolean;
84
86
  /** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
85
87
  _inlineUrlFailFrom?: number;
88
+ /** internal: deferred inline parses, drained by the owning parseMarkdown after the block pass so all reference definitions are known */
89
+ _pendingInline?: {
90
+ dest: ASTNode[];
91
+ text: string;
92
+ breaks: boolean;
93
+ inline?: boolean;
94
+ inAnchor?: boolean;
95
+ inHTML?: boolean;
96
+ htmlDepth?: number;
97
+ inList?: boolean;
98
+ inBlockQuote?: boolean;
99
+ noSetext?: boolean;
100
+ depth?: number;
101
+ }[];
102
+ /** internal: deferred list-item unwrap/concat ops, run after _pendingInline drains */
103
+ _pendingOps?: {
104
+ src: ASTNode[];
105
+ dest: ASTNode[];
106
+ unwrap: boolean;
107
+ }[];
86
108
  };
87
109
  /**
88
110
  * Blockquote node in the AST
@@ -177,6 +199,10 @@ type RequireAtLeastOne<
177
199
  type: typeof RuleType.htmlComment;
178
200
  /** Comment text */
179
201
  text: string;
202
+ /** @internal Whether the source comment ended with `>` (empty/special comments) */
203
+ _endsWithGT?: boolean;
204
+ /** @internal Whether the comment should be emitted as raw source text */
205
+ raw?: boolean;
180
206
  }
181
207
  /**
182
208
  * Image node
@@ -300,6 +326,8 @@ type RequireAtLeastOne<
300
326
  _rawAttrs?: string;
301
327
  /** @internal Original raw HTML content (for verbatim blocks) */
302
328
  _rawText?: string | undefined;
329
+ /** @internal rawText is a closed block; the HTML compiler emits the closing tag itself */
330
+ _emitOwnClose?: boolean;
303
331
  /** @deprecated Use `_rawText` instead. This property will be removed in a future major version. */
304
332
  text?: string | undefined;
305
333
  /** HTML tag name */
package/dist/html.d.ts CHANGED
@@ -81,8 +81,30 @@ type RequireAtLeastOne<
81
81
  _htmlDepth?: number;
82
82
  /** internal: set by collectReferenceDefinitions when input ends inside an unclosed fence */
83
83
  _endsInsideFence?: boolean;
84
+ /** internal: enable hard/soft line-break processing in parseInline (paragraph inline content) */
85
+ _breaks?: boolean;
84
86
  /** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
85
87
  _inlineUrlFailFrom?: number;
88
+ /** internal: deferred inline parses, drained by the owning parseMarkdown after the block pass so all reference definitions are known */
89
+ _pendingInline?: {
90
+ dest: ASTNode[];
91
+ text: string;
92
+ breaks: boolean;
93
+ inline?: boolean;
94
+ inAnchor?: boolean;
95
+ inHTML?: boolean;
96
+ htmlDepth?: number;
97
+ inList?: boolean;
98
+ inBlockQuote?: boolean;
99
+ noSetext?: boolean;
100
+ depth?: number;
101
+ }[];
102
+ /** internal: deferred list-item unwrap/concat ops, run after _pendingInline drains */
103
+ _pendingOps?: {
104
+ src: ASTNode[];
105
+ dest: ASTNode[];
106
+ unwrap: boolean;
107
+ }[];
86
108
  };
87
109
  /**
88
110
  * Blockquote node in the AST
@@ -177,6 +199,10 @@ type RequireAtLeastOne<
177
199
  type: typeof RuleType.htmlComment;
178
200
  /** Comment text */
179
201
  text: string;
202
+ /** @internal Whether the source comment ended with `>` (empty/special comments) */
203
+ _endsWithGT?: boolean;
204
+ /** @internal Whether the comment should be emitted as raw source text */
205
+ raw?: boolean;
180
206
  }
181
207
  /**
182
208
  * Image node
@@ -300,6 +326,8 @@ type RequireAtLeastOne<
300
326
  _rawAttrs?: string;
301
327
  /** @internal Original raw HTML content (for verbatim blocks) */
302
328
  _rawText?: string | undefined;
329
+ /** @internal rawText is a closed block; the HTML compiler emits the closing tag itself */
330
+ _emitOwnClose?: boolean;
303
331
  /** @deprecated Use `_rawText` instead. This property will be removed in a future major version. */
304
332
  text?: string | undefined;
305
333
  /** HTML tag name */