@molecule/app-markdown 1.0.3 → 1.0.4
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 +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-11-12T09:13:02.105Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-markdown
|
|
@@ -185,8 +185,8 @@ Peer dependencies:
|
|
|
185
185
|
|
|
186
186
|
- **Wire a bond at startup** — {@link requireProvider} throws until
|
|
187
187
|
`setProvider(provider)` has been called.
|
|
188
|
-
- **`sanitize` defaults to `true` and is the XSS gate.**
|
|
189
|
-
|
|
188
|
+
- **`sanitize` defaults to `true` and is the XSS gate.** `render()` returns
|
|
189
|
+
`{ html, toc }`; inject only its `html` string via your framework's raw-HTML mechanism — that is
|
|
190
190
|
only safe because it was sanitized. NEVER pass `sanitize: false` for
|
|
191
191
|
user-supplied or model-generated markdown (chat replies, comments, notes);
|
|
192
192
|
reserve it for fully trusted, app-authored content.
|
package/dist/index.d.ts
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* @remarks
|
|
21
21
|
* - **Wire a bond at startup** — {@link requireProvider} throws until
|
|
22
22
|
* `setProvider(provider)` has been called.
|
|
23
|
-
* - **`sanitize` defaults to `true` and is the XSS gate.**
|
|
24
|
-
*
|
|
23
|
+
* - **`sanitize` defaults to `true` and is the XSS gate.** `render()` returns
|
|
24
|
+
* `{ html, toc }`; inject only its `html` string via your framework's raw-HTML mechanism — that is
|
|
25
25
|
* only safe because it was sanitized. NEVER pass `sanitize: false` for
|
|
26
26
|
* user-supplied or model-generated markdown (chat replies, comments, notes);
|
|
27
27
|
* reserve it for fully trusted, app-authored content.
|
package/dist/index.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* @remarks
|
|
21
21
|
* - **Wire a bond at startup** — {@link requireProvider} throws until
|
|
22
22
|
* `setProvider(provider)` has been called.
|
|
23
|
-
* - **`sanitize` defaults to `true` and is the XSS gate.**
|
|
24
|
-
*
|
|
23
|
+
* - **`sanitize` defaults to `true` and is the XSS gate.** `render()` returns
|
|
24
|
+
* `{ html, toc }`; inject only its `html` string via your framework's raw-HTML mechanism — that is
|
|
25
25
|
* only safe because it was sanitized. NEVER pass `sanitize: false` for
|
|
26
26
|
* user-supplied or model-generated markdown (chat replies, comments, notes);
|
|
27
27
|
* reserve it for fully trusted, app-authored content.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-markdown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-markdown",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@molecule/app-bond": "^1.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@molecule/app-bond": "1.0.
|
|
38
|
+
"@molecule/app-bond": "1.0.5",
|
|
39
39
|
"@types/node": "26.6.5",
|
|
40
40
|
"typescript": "6.0.3",
|
|
41
41
|
"vitest": "4.1.12"
|