File: bytestring-reader.lua

package info (click to toggle)
haskell-pandoc-lua-engine 0.2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 648 kB
  • sloc: haskell: 3,709; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 218 bytes parent folder | download
1
2
3
4
5
6
7
function ByteStringReader (input, opts)
  local chars = pandoc.List{}
  for i = 1, #input do
    chars:insert(utf8.char(input:byte(i,i)))
  end
  return pandoc.Pandoc(pandoc.Plain(pandoc.Str(table.concat(chars))))
end