Косметические правки по разметке - длинное тире
This commit is contained in:
parent
450196b1c6
commit
d1e6b21af5
|
|
@ -94,7 +94,7 @@ class Markdown
|
|||
$string = preg_replace($pr, $rep, $string);
|
||||
|
||||
// \n & \r
|
||||
$string = str_replace(array("\n","\r"), ' ', $string);
|
||||
$string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string);
|
||||
|
||||
// multi-space
|
||||
$pr = '(\s{2,})';
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class ArticlesController extends Controller
|
|||
$text = $_POST['text'];
|
||||
|
||||
$html = strip_tags($text);
|
||||
$html = str_replace(array('<','>','"',"'",'--'), array('<','>','″','′','–'), $html);
|
||||
$html = str_replace(array('<','>','"',"'",' -- '), array('<','>','″','′',' – '), $html);
|
||||
$html = Markdown::processing($html);
|
||||
$html = nl2br($html);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue