mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
translate D* images (markdown) before links, they overlap and conflict
This commit is contained in:
parent
f0c3a75ff3
commit
c60d45752d
1 changed files with 1 additions and 1 deletions
|
@ -16,8 +16,8 @@ function diaspora2bb($s) {
|
|||
$s = preg_replace("/\*(.+?)\*/", '[i]$1[/i]', $s);
|
||||
$s = preg_replace("/\_(.+?)\_/", '[i]$1[/i]', $s);
|
||||
$s = str_replace(array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'), array('**','__','*','_'), $s);
|
||||
$s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s);
|
||||
$s = preg_replace('/\!\[(.+?)\]\((.+?)\)/','[img]$2[/img]',$s);
|
||||
$s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s);
|
||||
$s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue