Skip to content

Commit

Permalink
replace links
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed May 27, 2024
1 parent cf8e7ab commit 1f36ec7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert_to_md.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

# TODO:
# Replace <screencast file="spanish-edit-wikipedia-v1" youtube="nQYXllZtsyI" /> by Liquid-tag
# Replace <a href=""></a> by []()

my $path = shift or die "Usage: $0 PATH_TO_PAGES\n";

Expand Down Expand Up @@ -123,6 +122,8 @@
next;
}

$line =~ s{<a href="([^"]+)">([^<]+)</a>}{[$2]($1)};

push @output, $line;
}

Expand Down

0 comments on commit 1f36ec7

Please sign in to comment.