[PATCH 1/1] filters: in markdown get images from their plain url
Christian Hesse
mail at eworm.de
Thu Apr 17 12:19:50 CEST 2014
---
filters/html-converters/resources/markdown.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/filters/html-converters/resources/markdown.pl b/filters/html-converters/resources/markdown.pl
index 34337c2..01c719d 100755
--- a/filters/html-converters/resources/markdown.pl
+++ b/filters/html-converters/resources/markdown.pl
@@ -925,7 +925,7 @@ sub _DoImages {
my $url = $g_urls{$link_id};
$url =~ s! \* !$g_escape_table{'*'}!gx; # We've got to encode these to avoid
$url =~ s! _ !$g_escape_table{'_'}!gx; # conflicting with italics/bold.
- $result = "<img src=\"$url\" alt=\"$alt_text\"";
+ $result = "<img src=\"../plain/$url\" alt=\"$alt_text\"";
if (defined $g_titles{$link_id}) {
my $title = $g_titles{$link_id};
$title =~ s! \* !$g_escape_table{'*'}!gx;
@@ -977,7 +977,7 @@ sub _DoImages {
$title =~ s/"/"/g;
$url =~ s! \* !$g_escape_table{'*'}!gx; # We've got to encode these to avoid
$url =~ s! _ !$g_escape_table{'_'}!gx; # conflicting with italics/bold.
- $result = "<img src=\"$url\" alt=\"$alt_text\"";
+ $result = "<img src=\"../plain/$url\" alt=\"$alt_text\"";
if (defined $title) {
$title =~ s! \* !$g_escape_table{'*'}!gx;
$title =~ s! _ !$g_escape_table{'_'}!gx;
--
1.9.2
More information about the CGit
mailing list