mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
do a better job of preserving linebreaks in posts for channels that use markdown
This commit is contained in:
parent
7ec6879887
commit
e7bedf4433
2 changed files with 2 additions and 2 deletions
|
@ -474,6 +474,7 @@ function item_post(&$a) {
|
|||
if($uid && $uid == $profile_uid && feature_enabled($uid,'markdown')) {
|
||||
require_once('include/bb2diaspora.php');
|
||||
$body = escape_tags($body);
|
||||
$body = str_replace("\n",'<br />', $body);
|
||||
$body = preg_replace_callback('/\[share(.*?)\]/ism','share_shield',$body);
|
||||
$body = diaspora2bb($body,true);
|
||||
$body = preg_replace_callback('/\[share(.*?)\]/ism','share_unshield',$body);
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
2015-11-09.1211
|
||||
|
||||
2015-11-10.1212
|
||||
|
|
Loading…
Reference in a new issue