mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 03:17:16 +00:00
8 lines
218 B
Lua
8 lines
218 B
Lua
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
|