Compare commits

...

3 Commits

Author SHA1 Message Date
星云猫 9e150be6ac
Merge 01ec55c3a7 into fe0817f590 2025-12-02 00:06:16 +00:00
星云猫 01ec55c3a7
Merge branch 'main' into fix/cil-skip-Markdown 2025-12-02 08:06:11 +08:00
nebulamao 3080d7e803 Fix Web Bundler incorrectly skips plain Markdown workflow files 2025-11-30 18:49:12 +08:00
1 changed files with 5 additions and 3 deletions

View File

@ -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': {