From 15bb785947200e9694726a82cfb3664712732abb Mon Sep 17 00:00:00 2001 From: biglyderv Date: Tue, 21 Jan 2025 00:13:20 -0500 Subject: [PATCH] add penguinmod embed support --- docs/css/main.css | 6 ++++++ libs/markdown.php | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/docs/css/main.css b/docs/css/main.css index 19267a0..a37ebae 100755 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -178,3 +178,9 @@ pre { white-space: pre-wrap; overflow-wrap: break-word; } + +iframe { + width: 480px; + height: 360px; + border: none; +} diff --git a/libs/markdown.php b/libs/markdown.php index 2f99223..3b02b05 100755 --- a/libs/markdown.php +++ b/libs/markdown.php @@ -4,6 +4,8 @@ '~(https://[^.]+\.dervland\.net/[^\s<]+\.(png|jpg|jpeg|gif))~i', '~(https://[^.]+\.dervland\.net/[^\s<]+\.(mp3|wav))~i', '~(https://[^.]+\.dervland\.net/[^\s<]+\.(webm|mp4))~i', + '~(https://studio\.penguinmod\.com/[^\s
$1
', '
$1
', '
$1
', + 'https://studio.penguinmod.com/?#$2', + '
$1
', '$0', '@$1', '$2',