readmd.md update4

This commit is contained in:
Hamidreza 2025-04-30 08:34:51 +03:30
parent dd36e32da4
commit 20c94398a9
2 changed files with 22 additions and 20 deletions

View File

@ -86,47 +86,48 @@ jobs:
fi fi
done done
# Process HTML img tags separately - preserving all attributes # Process HTML img tags separately
echo "Processing HTML image references..." echo "Processing HTML image references..."
# Use a more reliable approach with temporary files and simpler perl commands # Create temporary files
temp_file=$(mktemp) temp_file=$(mktemp)
echo "$content" > "$temp_file" echo "$content" > "$temp_file"
# Create a simpler perl script file instead of inline perl # Create perl script file
perl_script=$(mktemp) 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 #!/usr/bin/perl
use strict; use strict;
use warnings; use warnings;
my $content = do { local $/; <STDIN> }; my \$content = do { local \$/; <STDIN> };
# Process HTML img tags # Process HTML img tags
while ($content =~ m|(<img\s+[^>]*?src=")([^"]+)("[^>]*?>)|g) { while (\$content =~ m|(<img\\s+[^>]*?src=")([^"]+)("[^>]*?>)|g) {
my $prefix = $1; my \$prefix = \$1;
my $src = $2; my \$src = \$2;
my $suffix = $3; my \$suffix = \$3;
my $tag = $prefix . $src . $suffix; my \$tag = \$prefix . \$src . \$suffix;
# Skip URLs # Skip URLs
next if $src =~ /^http/; next if \$src =~ /^http/;
# Get just the filename # Get just the filename
my $filename = $src; my \$filename = \$src;
$filename =~ s/.*\///; \$filename =~ s/.*\\///;
my $new_path = "images/" . $filename; my \$new_path = "images/" . \$filename;
# Replace in content # Replace in content
my $new_tag = $prefix . $new_path . $suffix; my \$new_tag = \$prefix . \$new_path . \$suffix;
$content =~ s/\Q$tag\E/$new_tag/g; \$content =~ s/\\Q\$tag\\E/\$new_tag/g;
} }
print $content; print \$content;
PERLSCRIPT EOL
# Process content with the perl script # Process content with perl script
cat "$temp_file" | perl "$perl_script" > "${temp_file}.new" cat "$temp_file" | perl "$perl_script" > "${temp_file}.new"
content=$(cat "${temp_file}.new") content=$(cat "${temp_file}.new")

View File

@ -13,6 +13,7 @@ This benchmark compares the performance of phasicFlow with a well-stablished com
</div> </div>
</div> </div>
<div align="center"> <div align="center">
<img src="./images/phasicFlow_snapshot.png" style="width: 400px;" /> <img src="./images/phasicFlow_snapshot.png" style="width: 400px;" />
<div align="center"> <div align="center">