codesamplex

示例

Handle modern marked custom renderer methods receiving a single token object instead of legacy positional primitive arguments

sha256:4026c7f4aa5bbe2dc885c538a92bdebf44cab658dca80b98f525a9b5c121ea76

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Handle modern marked custom renderer methods receiving a single token object instead of legacy positional primitive arguments HOW
marked 18.0.9
环境
node
创建时间
2026-08-16T18:45:29Z

常见的想当然

Custom renderer methods in marked receive positional primitive arguments like heading(text, level) and link(href, title, text) with child tokens pre-rendered into HTML strings.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执