@incremark/core 0.3.0 → 0.3.1

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.
@@ -2,7 +2,7 @@ import { Root, RootContent } from 'mdast';
2
2
  import { Extension } from 'micromark-util-types';
3
3
  import { Extension as Extension$1 } from 'mdast-util-from-markdown';
4
4
  import { MarkedExtension } from 'marked';
5
- import { b as ParserOptions, C as ContainerConfig, B as BlockStatus, P as ParsedBlock } from './index-mZ7yCqNH.js';
5
+ import { b as ParserOptions, C as ContainerConfig, B as BlockStatus, P as ParsedBlock } from './index-CWuosVAK.js';
6
6
 
7
7
  /**
8
8
  * AST 构建器统一接口和类型定义
@@ -33,6 +33,11 @@ interface IAstBuilder {
33
33
  * 将 AST 节点转换为 ParsedBlock
34
34
  */
35
35
  nodesToBlocks(nodes: RootContent[], startOffset: number, rawText: string, status: BlockStatus, generateBlockId: () => string): ParsedBlock[];
36
+ /**
37
+ * 更新配置选项(动态更新,不需要重建实例)
38
+ * @param options 部分配置选项
39
+ */
40
+ updateOptions(options: Partial<EngineParserOptions>): void;
36
41
  }
37
42
  /**
38
43
  * Marked 引擎扩展配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incremark/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "High-performance incremental markdown parser specifically designed for AI streaming output scenarios.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -47,6 +47,7 @@
47
47
  "micromark-extension-math": "^3.0.0",
48
48
  "micromark-factory-destination": "^2.0.0",
49
49
  "micromark-factory-label": "^2.0.0",
50
+ "micromark-factory-space": "^2.0.0",
50
51
  "micromark-factory-title": "^2.0.0",
51
52
  "micromark-factory-whitespace": "^2.0.0",
52
53
  "micromark-util-character": "^2.0.0",