From 390ff9c7df7c168843d0d58eea399ac438584d1c Mon Sep 17 00:00:00 2001 From: elektrischerwalfisch Date: Sat, 12 Apr 2025 17:27:09 +0200 Subject: [PATCH] removed mailto --- theme/mailto.php | 11 ----------- theme/shortcodes.php | 8 -------- 2 files changed, 19 deletions(-) delete mode 100644 theme/mailto.php diff --git a/theme/mailto.php b/theme/mailto.php deleted file mode 100644 index a3793ce..0000000 --- a/theme/mailto.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/theme/shortcodes.php b/theme/shortcodes.php index f4a5ea5..eb79be0 100644 --- a/theme/shortcodes.php +++ b/theme/shortcodes.php @@ -85,13 +85,6 @@ return '
' . $imgRounded . '
'; }, $markdown); - // Shortcode: mail link - $pattern = '/\{mail\}(.*?)\{\/mail\}/s'; - $markdown = preg_replace_callback($pattern, function ($matches) { - $linkText = trim($matches[1]); - return '' . htmlspecialchars($linkText) . ''; - }, $markdown); - // Shortcode: output readme-file $pattern = '/\{readme\}/s'; $markdown = preg_replace_callback($pattern, function () use ($Parsedown) { @@ -104,7 +97,6 @@ } }, $markdown); - // Shortcode: code 2/2 - restore code blocks (so no shortcode inside was processed) foreach ($codeBlocks as $placeholder => $codeBlock) { $markdown = str_replace($placeholder, $codeBlock, $markdown); -- 2.47.3