markdown-to-jsx 9.3.4 → 9.4.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 +150 -27
- package/dist/html.cjs +97 -97
- package/dist/html.d.cts +26 -0
- package/dist/html.d.ts +26 -0
- package/dist/html.js +97 -97
- package/dist/html.js.map +4 -4
- package/dist/index.cjs +87 -87
- package/dist/index.d.cts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +87 -87
- package/dist/index.js.map +5 -5
- package/dist/markdown.cjs +110 -110
- package/dist/markdown.js +110 -110
- package/dist/markdown.js.map +5 -5
- package/dist/native.cjs +93 -93
- package/dist/native.d.cts +32 -1
- package/dist/native.d.ts +32 -1
- package/dist/native.js +103 -103
- package/dist/native.js.map +5 -5
- package/dist/react.cjs +83 -83
- package/dist/react.d.cts +34 -3
- package/dist/react.d.ts +34 -3
- package/dist/react.js +84 -84
- package/dist/react.js.map +5 -5
- package/dist/solid.cjs +95 -95
- package/dist/solid.d.cts +26 -0
- package/dist/solid.d.ts +26 -0
- package/dist/solid.js +95 -95
- package/dist/solid.js.map +4 -4
- package/dist/vue.cjs +88 -88
- package/dist/vue.d.cts +34 -3
- package/dist/vue.d.ts +34 -3
- package/dist/vue.js +85 -85
- package/dist/vue.js.map +5 -5
- package/package.json +1 -1
package/dist/solid.d.cts
CHANGED
|
@@ -176,6 +176,7 @@ type RequireAtLeastOne<
|
|
|
176
176
|
attrs?: Record<string, any>;
|
|
177
177
|
children?: ASTNode[] | undefined;
|
|
178
178
|
noInnerParse?: Boolean;
|
|
179
|
+
rawAttrs?: string;
|
|
179
180
|
tag: string;
|
|
180
181
|
text?: string | undefined;
|
|
181
182
|
}
|
|
@@ -227,6 +228,31 @@ type RequireAtLeastOne<
|
|
|
227
228
|
*/
|
|
228
229
|
enforceAtxHeadings: boolean;
|
|
229
230
|
/**
|
|
231
|
+
* **⚠️ SECURITY WARNING: STRONGLY DISCOURAGED FOR USER INPUTS**
|
|
232
|
+
*
|
|
233
|
+
* When enabled, attempts to eval expressions in JSX props that cannot be serialized
|
|
234
|
+
* as JSON (functions, variables, complex expressions). This uses `eval()` which can
|
|
235
|
+
* execute arbitrary code.
|
|
236
|
+
*
|
|
237
|
+
* **ONLY use this option when:**
|
|
238
|
+
* - The markdown source is completely trusted (e.g., your own documentation)
|
|
239
|
+
* - You control all JSX components and their props
|
|
240
|
+
* - The content is NOT user-generated or user-editable
|
|
241
|
+
*
|
|
242
|
+
* **DO NOT use this option when:**
|
|
243
|
+
* - Processing user-submitted markdown
|
|
244
|
+
* - Rendering untrusted content
|
|
245
|
+
* - Building public-facing applications with user content
|
|
246
|
+
*
|
|
247
|
+
* Example unsafe input: `<Component onClick={() => fetch('/admin/delete-all')} />`
|
|
248
|
+
*
|
|
249
|
+
* When disabled (default), unserializable expressions remain as strings that can be
|
|
250
|
+
* safely inspected or handled on a case-by-case basis via custom renderRule logic.
|
|
251
|
+
*
|
|
252
|
+
* @default false
|
|
253
|
+
*/
|
|
254
|
+
evalUnserializableExpressions?: boolean;
|
|
255
|
+
/**
|
|
230
256
|
* Forces the compiler to always output content with a block-level wrapper
|
|
231
257
|
* (`<p>` or any block-level syntax your markdown already contains.)
|
|
232
258
|
*/
|
package/dist/solid.d.ts
CHANGED
|
@@ -176,6 +176,7 @@ type RequireAtLeastOne<
|
|
|
176
176
|
attrs?: Record<string, any>;
|
|
177
177
|
children?: ASTNode[] | undefined;
|
|
178
178
|
noInnerParse?: Boolean;
|
|
179
|
+
rawAttrs?: string;
|
|
179
180
|
tag: string;
|
|
180
181
|
text?: string | undefined;
|
|
181
182
|
}
|
|
@@ -227,6 +228,31 @@ type RequireAtLeastOne<
|
|
|
227
228
|
*/
|
|
228
229
|
enforceAtxHeadings: boolean;
|
|
229
230
|
/**
|
|
231
|
+
* **⚠️ SECURITY WARNING: STRONGLY DISCOURAGED FOR USER INPUTS**
|
|
232
|
+
*
|
|
233
|
+
* When enabled, attempts to eval expressions in JSX props that cannot be serialized
|
|
234
|
+
* as JSON (functions, variables, complex expressions). This uses `eval()` which can
|
|
235
|
+
* execute arbitrary code.
|
|
236
|
+
*
|
|
237
|
+
* **ONLY use this option when:**
|
|
238
|
+
* - The markdown source is completely trusted (e.g., your own documentation)
|
|
239
|
+
* - You control all JSX components and their props
|
|
240
|
+
* - The content is NOT user-generated or user-editable
|
|
241
|
+
*
|
|
242
|
+
* **DO NOT use this option when:**
|
|
243
|
+
* - Processing user-submitted markdown
|
|
244
|
+
* - Rendering untrusted content
|
|
245
|
+
* - Building public-facing applications with user content
|
|
246
|
+
*
|
|
247
|
+
* Example unsafe input: `<Component onClick={() => fetch('/admin/delete-all')} />`
|
|
248
|
+
*
|
|
249
|
+
* When disabled (default), unserializable expressions remain as strings that can be
|
|
250
|
+
* safely inspected or handled on a case-by-case basis via custom renderRule logic.
|
|
251
|
+
*
|
|
252
|
+
* @default false
|
|
253
|
+
*/
|
|
254
|
+
evalUnserializableExpressions?: boolean;
|
|
255
|
+
/**
|
|
230
256
|
* Forces the compiler to always output content with a block-level wrapper
|
|
231
257
|
* (`<p>` or any block-level syntax your markdown already contains.)
|
|
232
258
|
*/
|