From 7d212186c4e8d380b3fc5907836db3a3330c6f7e Mon Sep 17 00:00:00 2001 From: Chris <1828125+digitallyserviced@users.noreply.github.com> Date: Tue, 21 Jun 2022 18:15:22 -0400 Subject: [PATCH] github hyperlink example hyperlink example for github user/proj paths --- docs/hyperlinks.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/hyperlinks.md b/docs/hyperlinks.md index 2a65ca051..03155a57d 100644 --- a/docs/hyperlinks.md +++ b/docs/hyperlinks.md @@ -49,6 +49,13 @@ return { { regex = [[\b[tT](\d+)\b]], format = "https://example.com/tasks/?t=$1", + }, + + -- Make github like username/project paths + -- inside quotes and without clickable + { + regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]], + format = "https://www.github.com/$1/$3", } } }