Косметические правки по разметке - длинное тире
This commit is contained in:
parent
d1e6b21af5
commit
afe66030f9
|
|
@ -94,7 +94,7 @@ class Markdown
|
||||||
$string = preg_replace($pr, $rep, $string);
|
$string = preg_replace($pr, $rep, $string);
|
||||||
|
|
||||||
// \n & \r
|
// \n & \r
|
||||||
$string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string);
|
$string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string);
|
||||||
|
|
||||||
// multi-space
|
// multi-space
|
||||||
$pr = '(\s{2,})';
|
$pr = '(\s{2,})';
|
||||||
|
|
@ -106,7 +106,7 @@ class Markdown
|
||||||
$rep = '<a href="$0" title="$0" target="_blank">$1</a>';
|
$rep = '<a href="$0" title="$0" target="_blank">$1</a>';
|
||||||
$string = preg_replace($pr, $rep, $string);
|
$string = preg_replace($pr, $rep, $string);
|
||||||
|
|
||||||
return $string;
|
return trim($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue