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/html.d.cts
CHANGED
|
@@ -81,6 +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;
|
|
86
|
+
/** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
|
|
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
|
+
}[];
|
|
84
108
|
};
|
|
85
109
|
/**
|
|
86
110
|
* Blockquote node in the AST
|
|
@@ -175,6 +199,10 @@ type RequireAtLeastOne<
|
|
|
175
199
|
type: typeof RuleType.htmlComment;
|
|
176
200
|
/** Comment text */
|
|
177
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;
|
|
178
206
|
}
|
|
179
207
|
/**
|
|
180
208
|
* Image node
|
|
@@ -298,6 +326,8 @@ type RequireAtLeastOne<
|
|
|
298
326
|
_rawAttrs?: string;
|
|
299
327
|
/** @internal Original raw HTML content (for verbatim blocks) */
|
|
300
328
|
_rawText?: string | undefined;
|
|
329
|
+
/** @internal rawText is a closed block; the HTML compiler emits the closing tag itself */
|
|
330
|
+
_emitOwnClose?: boolean;
|
|
301
331
|
/** @deprecated Use `_rawText` instead. This property will be removed in a future major version. */
|
|
302
332
|
text?: string | undefined;
|
|
303
333
|
/** HTML tag name */
|
package/dist/html.d.ts
CHANGED
|
@@ -81,6 +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;
|
|
86
|
+
/** internal: smallest bare-URL start position known to fail by reaching end-of-input (issue #874); scoped per parseInline call */
|
|
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
|
+
}[];
|
|
84
108
|
};
|
|
85
109
|
/**
|
|
86
110
|
* Blockquote node in the AST
|
|
@@ -175,6 +199,10 @@ type RequireAtLeastOne<
|
|
|
175
199
|
type: typeof RuleType.htmlComment;
|
|
176
200
|
/** Comment text */
|
|
177
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;
|
|
178
206
|
}
|
|
179
207
|
/**
|
|
180
208
|
* Image node
|
|
@@ -298,6 +326,8 @@ type RequireAtLeastOne<
|
|
|
298
326
|
_rawAttrs?: string;
|
|
299
327
|
/** @internal Original raw HTML content (for verbatim blocks) */
|
|
300
328
|
_rawText?: string | undefined;
|
|
329
|
+
/** @internal rawText is a closed block; the HTML compiler emits the closing tag itself */
|
|
330
|
+
_emitOwnClose?: boolean;
|
|
301
331
|
/** @deprecated Use `_rawText` instead. This property will be removed in a future major version. */
|
|
302
332
|
text?: string | undefined;
|
|
303
333
|
/** HTML tag name */
|