markstream-vue 0.0.3-beta.2 → 0.0.3-beta.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 -1
- package/README.zh-CN.md +3 -1
- package/dist/exports-1obt4rfJ.cjs +246 -0
- package/dist/{exports-CzGTWeP_.js → exports-DhNgUzYL.js} +1866 -1845
- package/dist/exports.js +1 -1
- package/dist/{index-DoGGVWiX.js → index-BDPiDbZr.js} +1 -1
- package/dist/{index-BOMIs5jY.cjs → index-BS4IAchB.cjs} +1 -1
- package/dist/{index-DWSDjapj.js → index-Cy9ounEH.js} +1 -1
- package/dist/{index-W52qnVsg.cjs → index-DD2YWdWI.cjs} +1 -1
- package/dist/{index-DVzzMFW2.cjs → index-KPngPBen.cjs} +1 -1
- package/dist/{index-BJRqEAxf.js → index-gpZy9BH3.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/tailwind.ts +0 -0
- package/package.json +2 -2
- package/dist/exports-Dt9os3zH.cjs +0 -246
package/README.md
CHANGED
|
@@ -222,6 +222,7 @@ Pick one mode per surface: virtualization for best scrollback and steady memory
|
|
|
222
222
|
- `batchRendering`: fine-tune batches with `initialRenderBatchSize`, `renderBatchSize`, `renderBatchDelay`, `renderBatchBudgetMs`.
|
|
223
223
|
- `enableMermaid` / `enableKatex` / `enableMonaco`: opt-in heavy deps when needed.
|
|
224
224
|
- `parse-options`: reuse parser hooks (e.g., `preTransformTokens`, `requireClosingStrong`) on the component.
|
|
225
|
+
- `custom-html-tags`: extend streaming HTML allowlist for custom tags and emit them as custom nodes for `setCustomComponents` (e.g., `['thinking']`).
|
|
225
226
|
- `custom-components`: register inline Vue components for custom tags/markers.
|
|
226
227
|
|
|
227
228
|
Example: map Markdown placeholders to Vue components
|
|
@@ -366,6 +367,7 @@ This project uses and benefits from:
|
|
|
366
367
|
- [stream-monaco](https://github.com/Simon-He95/stream-monaco)
|
|
367
368
|
- [stream-markdown](https://github.com/Simon-He95/stream-markdown)
|
|
368
369
|
- [mermaid](https://mermaid-js.github.io/mermaid)
|
|
370
|
+
- [katex](https://katex.org/)
|
|
369
371
|
- [shiki](https://github.com/shikijs/shiki)
|
|
370
372
|
- [markdown-it-ts](https://github.com/Simon-He95/markdown-it-ts)
|
|
371
373
|
|
|
@@ -377,4 +379,4 @@ Thanks to the authors and contributors of these projects!
|
|
|
377
379
|
|
|
378
380
|
## License
|
|
379
381
|
|
|
380
|
-
[MIT](./
|
|
382
|
+
[MIT](./license) © [Simon He](https://github.com/Simon-He95)
|
package/README.zh-CN.md
CHANGED
|
@@ -221,6 +221,7 @@ function addChunk(chunk: string) {
|
|
|
221
221
|
- `batchRendering`:用 `initialRenderBatchSize`、`renderBatchSize`、`renderBatchDelay`、`renderBatchBudgetMs` 微调批次。
|
|
222
222
|
- `enableMermaid` / `enableKatex` / `enableMonaco`:按需启用重型依赖。
|
|
223
223
|
- `parse-options`:在组件上复用解析钩子(如 `preTransformTokens`、`requireClosingStrong`)。
|
|
224
|
+
- `custom-html-tags`:扩展流式 HTML 白名单并将这些标签输出为自定义节点,便于 `setCustomComponents` 直接映射(如 `['thinking']`)。
|
|
224
225
|
- `custom-components`:为自定义标签/标记注册内嵌 Vue 组件。
|
|
225
226
|
|
|
226
227
|
示例:将 Markdown 占位符映射到 Vue 组件
|
|
@@ -366,6 +367,7 @@ https://github.com/Simon-He95/markstream-vue/issues
|
|
|
366
367
|
- [stream-monaco](https://github.com/Simon-He95/stream-monaco)
|
|
367
368
|
- [stream-markdown](https://github.com/Simon-He95/stream-markdown)
|
|
368
369
|
- [mermaid](https://mermaid-js.github.io/mermaid)
|
|
370
|
+
- [katex](https://katex.org/)
|
|
369
371
|
- [shiki](https://github.com/shikijs/shiki)
|
|
370
372
|
- [markdown-it-ts](https://github.com/Simon-He95/markdown-it-ts)
|
|
371
373
|
|
|
@@ -377,4 +379,4 @@ https://github.com/Simon-He95/markstream-vue/issues
|
|
|
377
379
|
|
|
378
380
|
## 许可
|
|
379
381
|
|
|
380
|
-
[MIT](./
|
|
382
|
+
[MIT](./license) © [Simon He](https://github.com/Simon-He95)
|