File: strmacro.lua

package info (click to toggle)
haskell-pandoc-lua-engine 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 732 kB
  • sloc: haskell: 4,518; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (6)
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,
  }
}