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