A.S. Bradbury | 4 Sep 00:34
Favicon

[ANN] lua-discount 1.2.10

I'm pleased to announce the release of lua-discount 1.2.10.
lua-discount is a binding to Discount, a fast C implementation of the
Markdown text to HTML markup system. The biggest feature of this
release is the addition of the "nohtml" flag, which disables embedded
html. See the readme copied below for a full changelog, and a simple
benchmark against markdown.lua.

# lua-discount

A binding to [Discount](http://www.pell.portland.or.us/~orc/Code/discount/), a
fast C implementation of the
[Markdown](http://daringfireball.net/projects/markdown) text to HTML markup
system. Discount passes the Markdown test suite.

## Project links
* [Home](http://asbradbury.org/projects/lua-discount/)
* [Download](http://luaforge.net/projects/lua-discount/)
* [Documentation](http://asbradbury.org/projects/lua-discount/#usage)
* [Source](http://github.com/asb/lua-discount/)

## Release history
* lua-discount-1.2.10 (2008-09-03)
  * update to upstream Discount 1.2.10
  * support the `"nohtml"` option, to disable embedded html.
  * compile to use relaxed emphasis, meaning underscores don't count when
    they're in the middle of a word.
  * add some tests
  * include results of a simple benchmark in the readme
* lua-discount-1.2.7 (2008-08-03)
  * first public release
(Continue reading)

marcos | 4 Sep 03:59

Re: [ANN] lua-discount 1.2.10


Someone has a windows version or project to port "lua-discount" to windows?

Marcos

A.S. Bradbury escreveu:
> I'm pleased to announce the release of lua-discount 1.2.10.
> lua-discount is a binding to Discount, a fast C implementation of the
> Markdown text to HTML markup system. 
__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 

A.S. Bradbury | 4 Sep 09:27
Favicon

Re: [ANN] lua-discount 1.2.10

On Thu, Sep 4, 2008 at 2:59 AM, marcos <marcoswur <at> yahoo.com.br> wrote:
>
> Someone has a windows version or project to port "lua-discount" to windows?
>
> Marcos

I'll happily accept patches (either by email, or fork my github
project[1] and send a pull request). If the Discount library itself
will build on windows, then the only problem is I don't think windows
has an fopencookie/funopen equivalent. The windows version could just
use a tempfile though, which I expect would be slower but should would
work fine.

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.

Regards,

Alex

[1]: http://github.com/asb/lua-discount/

Tim Channon | 5 Sep 04:21

Re: [ANN] lua-discount 1.2.10

A.S. Bradbury wrote:
> On Thu, Sep 4, 2008 at 2:59 AM, marcos <marcoswur <at> 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.
(Continue reading)

Tim Channon | 5 Sep 04:50

Re: [ANN] lua-discount 1.2.10

Tim Channon wrote:

> 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.

Nothing wrong, try write with "wb"

http://www.gpsl.net/software/demo2.html


Gmane