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

検証レシート