Commit 2e2034ec authored by Bong Cosca's avatar Bong Cosca
Browse files

Add support for Markdown strike-through

parent b17db039
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ class Markdown extends Prefab {
	}

	/**
	*	Process strong/em spans
	*	Process strong/em/strikethrough spans
	*	@return string
	*	@param $str string
	**/
@@ -324,7 +324,11 @@ class Markdown extends Prefab {
							return '<strong><em>'.$expr[2].'</em></strong>';
					}
				},
				preg_replace(
					'/(?<!\\\\)~~(.*?)(?!\\\\)~~(?=[\s[:punct:]]|$)/',
					'<del>\1</del>',
					$tmp=$str
				)
			);
		return $str;
	}