lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


A.S. Bradbury wrote:
> On Thu, Sep 4, 2008 at 2:59 AM, marcos <marcoswur@yahoo.com.br> wrote:

> Thank you for your interest. If anyone has had any success building
> lua-discount on Windows (plain windows, or cygwin or mingw) then
> please let me know.

Cracked it with static lib and should be easy to turn into dynamic and
portable.

Utterly shocked given major hacking and worked first time, if with some
minor flaws.

This line included in the standard Lua interpreter file

  luaopen_discountlib(L);

As it stands and might change.
include "discount"
<string> = discount.encode(<string>)

Here is proof, second file tried and done for demo.

What it ought to look like, with additions of css.
http://daringfireball.net/projects/markdown/basics

Source was http://daringfireball.net/projects/markdown/basics.text

There is a minor problem (page stops short) but basically works, links
to the original site will not work, not right for this URL.
http://www.gpsl.net/software/demo.html literally as copied from XP disk
via ftp as written by Lua.

Tim