diff options
author | Ronan Collobert <ronan@collobert.com> | 2013-10-20 21:23:09 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2013-10-20 21:23:09 +0400 |
commit | 1f4cf161a539b24bc4e45ab5e49e4bc7101ece35 (patch) | |
tree | 1c6ce713e64f9be240854311b0a975224e530a6a | |
parent | 6168b5e286434cd81e2c9ea4b324305272c0ed4c (diff) |
Create README.md
-rw-r--r-- | README.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..44089f2 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +sundown-ffi +=========== + +A LuaJIT interface to the Sundown library (a Markdown implementation) + +# Installation # + +torch-rocks install https://raw.github.com/andresy/sundown-ffi/master/rocks/sundown-scm-1.rockspec + +# Usage # + +```lua +local sundown = require 'sundown' + +local html = sundow.render[[ +sundown-ffi +=========== + +A LuaJIT interface to the Sundown library (a Markdown implementation) + +# Installation # + +torch-rocks install https://raw.github.com/andresy/sundown-ffi/master/rocks/sundown-scm-1.rockspec +]] +``` + +# Advanced usage # + +All functions from the library `sundown` and `houdini` are accessible through `sundown.C.func` where `func` +is the function of interest. + +See the [Sundown library page](https://github.com/vmg/sundown) for more details. + +Note that Houdini C function and structure names are prefixed here with `sdhtml_` (e.g. `sdhtml_renderer`). +Sundown C function and structure names are prefixed with `sd_` (e.g. `sd_markdown_render`). + +See sdcdefs.lua and htmlcdefs.lua for what is actually available. |