diff --git a/skills/baoyu-post-to-wechat/scripts/wechat-api.ts b/skills/baoyu-post-to-wechat/scripts/wechat-api.ts index 20ac443..bab7431 100644 --- a/skills/baoyu-post-to-wechat/scripts/wechat-api.ts +++ b/skills/baoyu-post-to-wechat/scripts/wechat-api.ts @@ -450,7 +450,7 @@ function renderMarkdownWithPlaceholders( function replaceAllPlaceholders(html: string, placeholder: string, replacement: string): string { const escapedPlaceholder = placeholder.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); - return html.replace(new RegExp(escapedPlaceholder, "g"), replacement); + return html.replace(new RegExp(escapedPlaceholder + "(?!\\d)", "g"), replacement); } function extractHtmlContent(htmlPath: string): string {