diff --git a/AGENTS.md b/AGENTS.md index 0fc3b4b22..c109b5234 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -110,7 +110,7 @@ packages/comark/ │ │ ├── indent.ts # Dedent of outdented component children │ │ ├── unwrap.ts # `unwrap` option │ │ └── auto-unwrap.ts # `autoUnwrap` option -│ └── stringify/ # AST → markdown string rendering (handlers/ per tag) +│ └── stringify/ # AST → markdown string rendering (handlers/ per tag; transform-node.ts runs `transformNode`) ├── SPEC/ # Behavioral spec fixtures (CommonMark, GFM, HTML, COMARK, auto-close.md) ├── test/ # Vitest test files ├── package.json @@ -507,7 +507,10 @@ import { HTML_VOID_ELEMENTS, isMarkdownDocument, sanitizeData, + applyNodeTransforms, // runs a renderer's `transformNode` for one node (used by every renderer) + mergeNodeTransforms, // merges two `transformNode` values into one stable list } from 'comark/utils' +import type { NodeTransform, NodeTransformContext, NodeTransformResult } from 'comark' import { noopTracer, withSpan } from 'comark/utils/trace' // Core plugins — use when calling parseMarkdown() directly (framework-agnostic) @@ -785,6 +788,21 @@ the open tag. `