From 3080d7e803544fb496d0aae77ac45d5f69f61f1a Mon Sep 17 00:00:00 2001 From: nebulamao Date: Sun, 30 Nov 2025 18:49:12 +0800 Subject: [PATCH] Fix Web Bundler incorrectly skips plain Markdown workflow files --- tools/cli/bundlers/web-bundler.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/cli/bundlers/web-bundler.js b/tools/cli/bundlers/web-bundler.js index aafec6cb..eea64365 100644 --- a/tools/cli/bundlers/web-bundler.js +++ b/tools/cli/bundlers/web-bundler.js @@ -880,6 +880,10 @@ class WebBundler { switch (ext) { case '.md': { + + // Process all Markdown files to extract XML blocks + let processedContent = content; + // Try to extract XML from markdown - handle both 3 and 4 backtick blocks // First try 4 backticks (which can contain 3 backtick blocks inside) let xmlMatches = [...content.matchAll(/````xml\s*([\s\S]*?)````/g)]; @@ -900,11 +904,9 @@ class WebBundler { if (xmlBlocks.length > 0) { // For XML content, just include it directly (it's already valid XML) processedContent = xmlBlocks.join('\n\n'); - } else { - // No XML blocks found, skip non-XML markdown files - return; } + break; } case '.csv': {