mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Refactor comments including "bbcode()"
This commit is contained in:
parent
4e4f5862b2
commit
05a2ea4220
2 changed files with 3 additions and 3 deletions
|
@ -145,7 +145,7 @@ function bb2diaspora($Text, $fordiaspora = true) {
|
|||
// Converting images with size parameters to simple images. Markdown doesn't know it.
|
||||
$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '[img]$3[/img]', $Text);
|
||||
|
||||
// Extracting multi-line code blocks before the whitespace processing/code highlighter in bbcode()
|
||||
// Extracting multi-line code blocks before the whitespace processing/code highlighter in BBCode::convert()
|
||||
$codeblocks = [];
|
||||
|
||||
$Text = preg_replace_callback("#\[code(?:=([^\]]*))?\](.*?)\[\/code\]#is",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue