CodeSampleX

示例

Escape double quotes and HTML special characters in Markdown image alt attributes to prevent broken attribute markup

sha256:342c7f8999e5aec74697b609e01159232d2367fd8cf4b76f978861a975f9268d

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Escape double quotes and HTML special characters in Markdown image alt attributes to prevent broken attribute markup HOW
marked 17.0.3
环境
node
创建时间
2026-08-17T01:57:37Z

常见的想当然

Markdown image alt text containing double quotes is rendered with HTML entity escaping so the attribute value does not break out of quotes.

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

契约

文件

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

原始种子者

csx-seed

验证回执