about summary refs log tree commit diff homepage
path: root/utils.jl
diff options
context:
space:
mode:
Diffstat (limited to 'utils.jl')
-rw-r--r--utils.jl10
1 files changed, 7 insertions, 3 deletions
diff --git a/utils.jl b/utils.jl
index c3fa6b1..bb8826b 100644
--- a/utils.jl
+++ b/utils.jl
@@ -1,6 +1,10 @@
-function hfun_bar(vname)
-  val = Meta.parse(vname[1])
-  return round(sqrt(val), digits=2)
+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_m1fill(vname)