diff --git a/app/TextFormatter.inc b/app/TextFormatter.inc index 573a68f9..f58dda74 100644 --- a/app/TextFormatter.inc +++ b/app/TextFormatter.inc @@ -65,9 +65,6 @@ // Add link targets $string = $this->tLinks($string); - // Handle custom formatting - $string = $this->tCustom($string); - // Handle Seminarymedia $string = $this->tSeminarymedia($string); @@ -135,39 +132,6 @@ } - /** - * Handle custom formatting syntax. - * - * @Deprecated - * @param string $string String to format - * @return string Formatted string - */ - private function tCustom($string) - { - // Important text - $string = str_replace('[strong]', '', $string); - $string = str_replace('[/strong]', '', $string); - - // Create tables - $string = preg_replace('/(\[table\])\s+/u', '$1', $string); - $string = preg_replace('/\s*(\[tr\])\s*/u', '$1', $string); - $string = preg_replace('%\s+(\[/table\])%u', '$1', $string); - $string = preg_replace('%\s*(\[/tr\])\s*%u', '$1', $string); - $string = str_replace('[table]', '
', $string); - $string = str_replace('[tr]', '