From 50467f2a9c6240c351079c8ca79d670e18afeaca Mon Sep 17 00:00:00 2001 From: Revvy Date: Sat, 22 Apr 2023 17:07:25 -0400 Subject: [PATCH] gist support with gothub --- misc/tools.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/tools.php b/misc/tools.php index 96dc08b..19f36cb 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -51,6 +51,11 @@ $url = $frontend . "/" . $wiki_name . explode($original, $url)[1]; } } + else if (strpos($url, "gist.github.com") !== false) + { + $gist_path = explode("gist.github.com", $url)[1]; + $url = $frontend . "/gist" . $gist_path; + } else { $url = $frontend . explode($original, $url)[1];