pguillory / luajit-sundown

LuaJIT FFI binding for Sundown markdown renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luajit-sundown

This is a LuaJIT FFI binding for Sundown, a C library for rendering markdown.

Usage

print(sundown.render('Hello world'))
// <p>Hello world</p>

You can also pass callbacks for rendering specific types of content. The only one supported at the moment is blockcode, so that you can do syntax highlighting. See the tests directory for an example.

About

LuaJIT FFI binding for Sundown markdown renderer


Languages

Language:Lua 93.5%Language:C 6.5%