markstream-vue 0.0.3-beta.3 → 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 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
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 组件