FIX разбор маркдауна для чистого вывода

This commit is contained in:
Krivchikov Dmitry 2016-05-27 10:13:04 +03:00
parent 372a4ec09b
commit 8b5961c03d
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class Markdown
$string = preg_replace($pr, $rep, $string);
// Images
$pr = '(\[img[\|]#(\d+)\])';
$pr = '(\[img[\|]#(\d+)([\|](\w+))?\])';
$rep = ' ';
$string = preg_replace($pr, $rep, $string);
@ -151,7 +151,7 @@ class Markdown
// Points
$pr = '((\[#(\d+)[>\|](.*?)\])|(\[#(\d+)\]))';
$rep = ' ';
$rep = '$3';
$string = preg_replace($pr, $rep, $string);
// multi-space