Browse Source

Added strikethru support to Mdparser

spesk1 5 năm trước cách đây
mục cha
commit
06b4768967
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      lib/Gsg/MdParse.pm

+ 3 - 0
lib/Gsg/MdParse.pm

@@ -92,6 +92,9 @@ sub render_readme($$) {
 		} elsif ( $line =~ m/(http.*)/ ) {
 			$line = link_line($line);
 			print $fh "$line<br>";
+		} elsif ( $line =~ m/^~~(.*)~~/ ) {
+			$line = "<s>$1</s>";
+			print $fh "$line<br>";
 		}
 		else {
 			print $fh "$line<br>";