diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml index 8705d2e9..e60433f7 100644 --- a/.github/workflows/sync-wiki.yml +++ b/.github/workflows/sync-wiki.yml @@ -86,47 +86,48 @@ jobs: fi done - # Process HTML img tags separately - preserving all attributes + # Process HTML img tags separately echo "Processing HTML image references..." - # Use a more reliable approach with temporary files and simpler perl commands + # Create temporary files temp_file=$(mktemp) echo "$content" > "$temp_file" - # Create a simpler perl script file instead of inline perl + # Create perl script file perl_script=$(mktemp) - # Write the perl script with proper escaping for YAML - cat > "$perl_script" << 'PERLSCRIPT' + + # Write perl script content - using proper YAML block scalar syntax + cat > "$perl_script" << EOL #!/usr/bin/perl use strict; use warnings; -my $content = do { local $/; }; +my \$content = do { local \$/; }; # Process HTML img tags -while ($content =~ m|(]*?src=")([^"]+)("[^>]*?>)|g) { - my $prefix = $1; - my $src = $2; - my $suffix = $3; - my $tag = $prefix . $src . $suffix; +while (\$content =~ m|(]*?src=")([^"]+)("[^>]*?>)|g) { + my \$prefix = \$1; + my \$src = \$2; + my \$suffix = \$3; + my \$tag = \$prefix . \$src . \$suffix; # Skip URLs - next if $src =~ /^http/; + next if \$src =~ /^http/; # Get just the filename - my $filename = $src; - $filename =~ s/.*\///; - my $new_path = "images/" . $filename; + my \$filename = \$src; + \$filename =~ s/.*\\///; + my \$new_path = "images/" . \$filename; # Replace in content - my $new_tag = $prefix . $new_path . $suffix; - $content =~ s/\Q$tag\E/$new_tag/g; + my \$new_tag = \$prefix . \$new_path . \$suffix; + \$content =~ s/\\Q\$tag\\E/\$new_tag/g; } -print $content; -PERLSCRIPT +print \$content; +EOL - # Process content with the perl script + # Process content with perl script cat "$temp_file" | perl "$perl_script" > "${temp_file}.new" content=$(cat "${temp_file}.new") diff --git a/benchmarks/rotatingDrum/readme.md b/benchmarks/rotatingDrum/readme.md index 12c36fab..7476acfb 100644 --- a/benchmarks/rotatingDrum/readme.md +++ b/benchmarks/rotatingDrum/readme.md @@ -13,6 +13,7 @@ This benchmark compares the performance of phasicFlow with a well-stablished com +