blob: f35913b4bce2cea6a78cacffb6c6c41a097dd739 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using Printf
function hfun_pep(args)
postfix = length(args) < 2 ? "" : '#' * args[2]
return @sprintf(
"<a href=https://www.python.org/dev/peps/pep-%04d%s>PEP %s%s</a>",
Meta.parse(args[1]), postfix, args[1], postfix)
end
function hfun_github(args)
return @sprintf("<a href=https://github.com/%s>@%s</a>",
args[1], args[1])
end
function hfun_pip(args)
content = length(args) < 2 ? "GH-" * args[1] : args[2]
return @sprintf("<a href=https://github.com/pypa/pip/pull/%s>%s</a>",
args[1], content)
end
|