浏览代码

Added strikethru support to Mdparser

spesk1 5 年之前
父节点
当前提交
06b4768967
共有 1 个文件被更改,包括 3 次插入0 次删除
  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>";