Skip to content

Commit 20c9439

Browse files
readmd.md update4
1 parent dd36e32 commit 20c9439

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.github/workflows/sync-wiki.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86,47 +86,48 @@ jobs:
8686
fi
8787
done
8888
89-
# Process HTML img tags separately - preserving all attributes
89+
# Process HTML img tags separately
9090
echo "Processing HTML image references..."
9191
92-
# Use a more reliable approach with temporary files and simpler perl commands
92+
# Create temporary files
9393
temp_file=$(mktemp)
9494
echo "$content" > "$temp_file"
9595
96-
# Create a simpler perl script file instead of inline perl
96+
# Create perl script file
9797
perl_script=$(mktemp)
98-
# Write the perl script with proper escaping for YAML
99-
cat > "$perl_script" << 'PERLSCRIPT'
98+
99+
# Write perl script content - using proper YAML block scalar syntax
100+
cat > "$perl_script" << EOL
100101
#!/usr/bin/perl
101102
use strict;
102103
use warnings;
103104

104-
my $content = do { local $/; <STDIN> };
105+
my \$content = do { local \$/; <STDIN> };
105106

106107
# Process HTML img tags
107-
while ($content =~ m|(<img\s+[^>]*?src=")([^"]+)("[^>]*?>)|g) {
108-
my $prefix = $1;
109-
my $src = $2;
110-
my $suffix = $3;
111-
my $tag = $prefix . $src . $suffix;
108+
while (\$content =~ m|(<img\\s+[^>]*?src=")([^"]+)("[^>]*?>)|g) {
109+
my \$prefix = \$1;
110+
my \$src = \$2;
111+
my \$suffix = \$3;
112+
my \$tag = \$prefix . \$src . \$suffix;
112113

113114
# Skip URLs
114-
next if $src =~ /^http/;
115+
next if \$src =~ /^http/;
115116

116117
# Get just the filename
117-
my $filename = $src;
118-
$filename =~ s/.*\///;
119-
my $new_path = "images/" . $filename;
118+
my \$filename = \$src;
119+
\$filename =~ s/.*\\///;
120+
my \$new_path = "images/" . \$filename;
120121

121122
# Replace in content
122-
my $new_tag = $prefix . $new_path . $suffix;
123-
$content =~ s/\Q$tag\E/$new_tag/g;
123+
my \$new_tag = \$prefix . \$new_path . \$suffix;
124+
\$content =~ s/\\Q\$tag\\E/\$new_tag/g;
124125
}
125126

126-
print $content;
127-
PERLSCRIPT
127+
print \$content;
128+
EOL
128129

129-
# Process content with the perl script
130+
# Process content with perl script
130131
cat "$temp_file" | perl "$perl_script" > "${temp_file}.new"
131132
content=$(cat "${temp_file}.new")
132133

benchmarks/rotatingDrum/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This benchmark compares the performance of phasicFlow with a well-stablished com
1313
</div>
1414
</div>
1515

16+
1617
<div align="center">
1718
<img src="./images/phasicFlow_snapshot.png" style="width: 400px;" />
1819
<div align="center">

0 commit comments

Comments
 (0)