stream-markdown-parser 1.0.8 → 1.0.9

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
@@ -267,6 +267,7 @@ ParseOptions supports the following hooks and flags:
267
267
  interface ParseOptions {
268
268
  preTransformTokens?: (tokens: Token[]) => Token[]
269
269
  postTransformTokens?: (tokens: Token[]) => Token[]
270
+ postTransformNodes?: (nodes: ParsedNode[]) => ParsedNode[]
270
271
  // Custom HTML-like tags to emit as custom nodes (e.g. ['thinking'])
271
272
  // Use tag-like names such as 'thinking', 'answer-box', or 'my_component'.
272
273
  customHtmlTags?: string[]
package/README.zh-CN.md CHANGED
@@ -265,6 +265,7 @@ ParseOptions 支持以下钩子与标志:
265
265
  interface ParseOptions {
266
266
  preTransformTokens?: (tokens: Token[]) => Token[]
267
267
  postTransformTokens?: (tokens: Token[]) => Token[]
268
+ postTransformNodes?: (nodes: ParsedNode[]) => ParsedNode[]
268
269
  // 自定义 HTML 类标签,作为自定义节点输出(如 ['thinking'])
269
270
  // 请传标签式名字,比如 'thinking'、'answer-box'、'my_component'
270
271
  customHtmlTags?: string[]