about summary refs log tree commit diff homepage
path: root/utils.jl
blob: bb8826b1f4be5c0e13d6fe92c0479c7d0b049582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
  var = vname[1]
  return pagevar("index", var)
end

function lx_baz(com, _)
  # keep this first line
  brace_content = Franklin.content(com.braces[1]) # input string
  # do whatever you want here
  return uppercase(brace_content)
end