aboutsummaryrefslogtreecommitdiff
path: root/test/lua/strmacro.lua
blob: 40756a476ee1f48f6f3d042663e00d64fccb0d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
return {
  {
    Str = function (str)
      if str == "{{helloworld}}" then
        return pandoc.Emph {pandoc.Str "Hello, World"}
      else
        return pandoc.Str(str)
      end
    end,
  }
}