Fix Web Bundler incorrectly skips plain Markdown workflow files
This commit is contained in:
parent
a0732df56c
commit
3080d7e803
|
|
@ -880,6 +880,10 @@ class WebBundler {
|
||||||
|
|
||||||
switch (ext) {
|
switch (ext) {
|
||||||
case '.md': {
|
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
|
// Try to extract XML from markdown - handle both 3 and 4 backtick blocks
|
||||||
// First try 4 backticks (which can contain 3 backtick blocks inside)
|
// First try 4 backticks (which can contain 3 backtick blocks inside)
|
||||||
let xmlMatches = [...content.matchAll(/````xml\s*([\s\S]*?)````/g)];
|
let xmlMatches = [...content.matchAll(/````xml\s*([\s\S]*?)````/g)];
|
||||||
|
|
@ -900,11 +904,9 @@ class WebBundler {
|
||||||
if (xmlBlocks.length > 0) {
|
if (xmlBlocks.length > 0) {
|
||||||
// For XML content, just include it directly (it's already valid XML)
|
// For XML content, just include it directly (it's already valid XML)
|
||||||
processedContent = xmlBlocks.join('\n\n');
|
processedContent = xmlBlocks.join('\n\n');
|
||||||
} else {
|
|
||||||
// No XML blocks found, skip non-XML markdown files
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '.csv': {
|
case '.csv': {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue