Browse Source

Added strikethru support to Mdparser

spesk1 4 years ago
parent
commit
06b4768967
1 changed files with 3 additions and 0 deletions
  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>";