stream-markdown-parser 1.0.3 → 1.0.6

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
@@ -25,8 +25,8 @@ This package contains the core markdown parsing logic extracted from `markstream
25
25
 
26
26
  The full usage guide lives alongside the markstream-vue docs:
27
27
 
28
- - English: https://markstream-vue-docs.simonhe.me/guide/api
29
- - 中文: https://markstream-vue-docs.simonhe.me/zh/guide/api
28
+ - English: https://markstream.simonhe.me/guide/api
29
+ - 中文: https://markstream.simonhe.me/zh/guide/api
30
30
 
31
31
  This README highlights the parser-specific APIs; visit the docs for end-to-end integration tutorials (VitePress, workers, Tailwind, troubleshooting, etc.).
32
32
 
@@ -80,7 +80,7 @@ async function handleChunk(chunk: string) {
80
80
  }
81
81
  ```
82
82
 
83
- In the UI layer, render `nodes` with `<MarkdownRender :nodes="nodes" />` to avoid re-parsing. See the [docs usage guide](https://markstream-vue-docs.simonhe.me/guide/usage) for end-to-end wiring.
83
+ In the UI layer, render `nodes` with `<MarkdownRender :nodes="nodes" />` to avoid re-parsing. See the [docs usage guide](https://markstream.simonhe.me/guide/usage) for end-to-end wiring.
84
84
 
85
85
  ### Basic example
86
86
 
@@ -349,7 +349,7 @@ Find the matching closing delimiter in a string, handling nested pairs.
349
349
  - **Reuse parser instances**: cache `getMarkdown()` results per worker/request to avoid re-registering plugins.
350
350
  - **Server-side parsing**: run `parseMarkdownToStructure` on the server, ship the AST to the client, and hydrate with `markstream-vue` for deterministic output.
351
351
  - **Custom HTML widgets**: pre-extract `<MyWidget>` blocks before parsing (replace with placeholders) and reinject them during rendering instead of mutating `html_block` nodes post-parse.
352
- - **Styling**: when piping nodes into `markstream-vue`, follow the docs [CSS checklist](https://markstream-vue-docs.simonhe.me/guide/troubleshooting#css-looks-wrong-start-here) so Tailwind/UnoCSS don’t override library styles.
352
+ - **Styling**: when piping nodes into `markstream-vue`, follow the docs [CSS checklist](https://markstream.simonhe.me/guide/troubleshooting#css-looks-wrong-start-here) so Tailwind/UnoCSS don’t override library styles.
353
353
  - **Error handling**: the `apply` hook swallows exceptions to maintain backwards compatibility. If you want strict mode, wrap your mutators before passing them in and rethrow/log as needed.
354
354
 
355
355
  #### `parseFenceToken(token)`
@@ -524,7 +524,7 @@ import { getMarkdown } from 'markstream-vue'
524
524
  import { getMarkdown } from 'stream-markdown-parser'
525
525
  ```
526
526
 
527
- All APIs remain the same. See the [migration guide](https://markstream-vue-docs.simonhe.me/monorepo-migration) for details.
527
+ All APIs remain the same. See the [migration guide](https://markstream.simonhe.me/monorepo-migration) for details.
528
528
 
529
529
  ## Performance
530
530
 
package/README.zh-CN.md CHANGED
@@ -25,8 +25,8 @@
25
25
 
26
26
  完整的使用说明与集成教程见 markstream-vue 文档站:
27
27
 
28
- - English: https://markstream-vue-docs.simonhe.me/guide/api
29
- - 中文: https://markstream-vue-docs.simonhe.me/zh/guide/api
28
+ - English: https://markstream.simonhe.me/guide/api
29
+ - 中文: https://markstream.simonhe.me/zh/guide/api
30
30
 
31
31
  本 README 聚焦解析器 API;如需 VitePress/Vite/Nuxt 集成、Worker 流式解析、Tailwind/UnoCSS 配置等指南,请查阅上述文档。
32
32
 
@@ -80,7 +80,7 @@ async function handleChunk(chunk: string) {
80
80
  }
81
81
  ```
82
82
 
83
- 在前端通过 `<MarkdownRender :nodes="nodes" />` 渲染即可避免重复解析。具体串联示例见[文档用法指南](https://markstream-vue-docs.simonhe.me/zh/guide/usage)。
83
+ 在前端通过 `<MarkdownRender :nodes="nodes" />` 渲染即可避免重复解析。具体串联示例见[文档用法指南](https://markstream.simonhe.me/zh/guide/usage)。
84
84
 
85
85
  ### 基础示例
86
86
 
@@ -347,7 +347,7 @@ const nodes = parseMarkdownToStructure(
347
347
  - **复用解析实例**:缓存 `getMarkdown()` 的结果,避免重复注册插件。
348
348
  - **服务端解析**:在服务端运行 `parseMarkdownToStructure` 后把 AST 下发给客户端,配合 `markstream-vue` 实现确定性输出。
349
349
  - **自定义 HTML 组件**:在解析前先把 `<MyWidget>` 这类片段替换为占位符,渲染时再注入,避免在 `html_block` 上进行脆弱的字符串操作。
350
- - **样式提示**:如果将节点交给 `markstream-vue`,务必按照文档的 [CSS 排查清单](https://markstream-vue-docs.simonhe.me/zh/guide/troubleshooting#css-looks-wrong-start-here) 调整 reset / layer,防止 Tailwind/UnoCSS 覆盖样式。
350
+ - **样式提示**:如果将节点交给 `markstream-vue`,务必按照文档的 [CSS 排查清单](https://markstream.simonhe.me/zh/guide/troubleshooting#css-looks-wrong-start-here) 调整 reset / layer,防止 Tailwind/UnoCSS 覆盖样式。
351
351
  - **错误处理**:`apply` 钩子内部默认捕获异常后打印日志,如需在 CI/生产中抛出错误,可在传入前自行封装并 rethrow。
352
352
 
353
353
  #### `parseFenceToken(token)`
@@ -487,7 +487,7 @@ import { getMarkdown } from 'markstream-vue'
487
487
  import { getMarkdown } from 'stream-markdown-parser'
488
488
  ```
489
489
 
490
- 所有 API 保持不变。详见[迁移指南](https://markstream-vue-docs.simonhe.me/zh/monorepo-migration)。
490
+ 所有 API 保持不变。详见[迁移指南](https://markstream.simonhe.me/zh/monorepo-migration)。
491
491
 
492
492
  ## 性能
493
493