From 7a5fde722e4f575e3342bb3f5d1cd0e9eaaf8dbb Mon Sep 17 00:00:00 2001 From: Dasoren Date: Wed, 13 Jan 2016 11:04:56 -0500 Subject: [PATCH] Added more supported link protocols for markdown Added the ssh:// ts3server:// git:// irc:// ircs:// protocols for links in markdown files rendered --- modules/base/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/base/markdown.go b/modules/base/markdown.go index a3d3a7ca8..6c6475d1a 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -29,7 +29,7 @@ func isalnum(c byte) bool { return (c >= '0' && c <= '9') || isletter(c) } -var validLinks = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://")} +var validLinks = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://"), []byte("ssh://"), []byte("ts3server://"), []byte("git://"), []byte("irc://"), []byte("ircs://")} func isLink(link []byte) bool { for _, prefix := range validLinks {