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