lua-discountA Lua binding to Discount | |
Download |
lua-discount Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- A.S. Bradbury
- Publisher web site:
- http://asbradbury.org/
lua-discount Tags
lua-discount Description
A Lua binding to Discount lua-discount is a binding to Discount, a fast C implementation of the Markdown text to HTML markup system. Discount passes the Markdown test suite.Performance:Thanks to the underlying Discount implementation, lua-discount is incredibly fast. Benchmarking markdown.lua 0.32 against lua-discount 1.2.10 by parsing the Markdown syntax document 100 times gives the following result (all figures are in seconds): user system total reallua-discount 0.170000 0.000000 0.170000 0.177374markdown.lua 48.530000 0.000000 48.530000 48.524910Usage:Note that require("discount") returns a single function, which you are responsible for giving a suitable name. Example:discount = require("discount")local markdown_string = (http://example.com). ]] local html_string = discount(markdown_string, "nolinks")The discount function takes as its first argument the Markdown string to convert, and for its subsequent arguments takes any combination of the following strings as options:"nolinks" do not allow
lua-discount Related Software