From 61a7ea3599c3212dd71a6218fa6a8d436d96c0c0 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 17:20:38 +0200 Subject: [PATCH] create "shuser" prompt --- plugins/shortcode-custom/Prismjsshuser.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/shortcode-custom/Prismjsshuser.php diff --git a/plugins/shortcode-custom/Prismjsshuser.php b/plugins/shortcode-custom/Prismjsshuser.php new file mode 100644 index 0000000..d1544b8 --- /dev/null +++ b/plugins/shortcode-custom/Prismjsshuser.php @@ -0,0 +1,16 @@ +shortcode->getRawHandlers()->add('shuser', function(ShortcodeInterface $sc) { + $content = trim($sc->getContent(), "\n "); + return '
'.$content.'
'; + }); + } +} +?>