From 83f034842ee6f229670370b5939715cddb0a5bd4 Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Mon, 25 Mar 2019 14:48:52 +0100 Subject: [PATCH] [HTML] Do not break the table of contents by transorming local links to gitlab links --- bin/pandoc_fixer.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pandoc_fixer.pl b/bin/pandoc_fixer.pl index 5d37f10..faddd60 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="([^%][^"]*)"/) { -- 2.18.1