From 83d3e745612fc19bd8852a4d65e7015fdfc13bd3 Mon Sep 17 00:00:00 2001 From: Milan Date: Sun, 6 Sep 2020 19:52:41 +0200 Subject: [PATCH] markup.pm: support simple http links --- lib/calcms/markup.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/calcms/markup.pm b/lib/calcms/markup.pm index 556e9b9..5724041 100644 --- a/lib/calcms/markup.pm +++ b/lib/calcms/markup.pm @@ -149,6 +149,7 @@ sub markdown_to_html($){ my $text = $_[0] // ''; print STDERR "markwon!\n"; my $html = Text::Markdown::markdown($text); + $html=~s!(\s)(https?://[^\s]+)(\s)!$1$2$3!g; return $html; }