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