Explorar el Código

Added strikethru support to Mdparser

spesk1 hace 5 años
padre
commit
06b4768967
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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>";