diff --git a/bin/pandoc_fixer.pl b/bin/pandoc_fixer.pl index 5d37f10c9d849a0140135c99645dbad4b2712232..faddd608fcb8fdbd4c1ebe53242e0403f7ca7158 100755 --- a/bin/pandoc_fixer.pl +++ b/bin/pandoc_fixer.pl @@ -69,8 +69,8 @@ while(defined(my $line=)) { $line =~ s|img src="%|img src="http|g; $line =~ s|href="http|href="%|g; - $line =~ s|href="([^%][^"]*.tgz)"|href="$raw_path_percent/$1"|g; # ?inline=false - $line =~ s|href="([^%][^"]*)"|href="$tree_path/$1"|g; # ?inline=false + $line =~ s|href="([^%#][^"]*.tgz)"|href="$raw_path_percent/$1"|g; # ?inline=false + $line =~ s|href="([^%#][^"]*)"|href="$tree_path/$1"|g; # ?inline=false $line =~ s|href="%|href="http|g; # if($line =~ /img src="([^%][^"]*)"/) {