FIX разбор маркдауна для чистого вывода
This commit is contained in:
parent
372a4ec09b
commit
8b5961c03d
|
|
@ -133,7 +133,7 @@ class Markdown
|
||||||
$string = preg_replace($pr, $rep, $string);
|
$string = preg_replace($pr, $rep, $string);
|
||||||
|
|
||||||
// Images
|
// Images
|
||||||
$pr = '(\[img[\|]#(\d+)\])';
|
$pr = '(\[img[\|]#(\d+)([\|](\w+))?\])';
|
||||||
$rep = ' ';
|
$rep = ' ';
|
||||||
$string = preg_replace($pr, $rep, $string);
|
$string = preg_replace($pr, $rep, $string);
|
||||||
|
|
||||||
|
|
@ -151,7 +151,7 @@ class Markdown
|
||||||
|
|
||||||
// Points
|
// Points
|
||||||
$pr = '((\[#(\d+)[>\|](.*?)\])|(\[#(\d+)\]))';
|
$pr = '((\[#(\d+)[>\|](.*?)\])|(\[#(\d+)\]))';
|
||||||
$rep = ' ';
|
$rep = '$3';
|
||||||
$string = preg_replace($pr, $rep, $string);
|
$string = preg_replace($pr, $rep, $string);
|
||||||
|
|
||||||
// multi-space
|
// multi-space
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue