[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] markdown.lua 0.10
- From: "Alex Queiroz" <asandroq@...>
- Date: Thu, 11 May 2006 09:12:57 -0300
Hallo,
On 5/11/06, Niklas Frykholm <niklas@grin.se> wrote:
This is an implementation of the popular text markup language Markdown
in pure Lua.
Markdown can convert documents written in a simple and easy to read text
format
to well-formatted HTML. For a more thourough description of Markdown and
the Markdown
syntax, see <http://daringfireball.net/projects/markdown>.
-- Joins an array into text separated by separator
function join(arr, sep)
if #arr == 0 then return "" end
local res = arr[1]
for i = 2,#arr do
res = res .. sep .. arr[i]
end
return res
end
Why do you use this instead of table.concat? Since strings are
immutable, this code can use a lot of memory, as explained in PiL.
--
-alex
http://www.ventonegro.org/