开源软件名称(OpenSource Name):jgm/lunamark开源软件地址(OpenSource Url):https://github.com/jgm/lunamark开源编程语言(OpenSource Language):C 50.4%开源软件介绍(OpenSource Introduction):LunamarkLunamark is a lua library and command-line program for conversion of markdown to other textual formats. Currently HTML, dzslides (HTML5 slides), Docbook, ConTeXt, LaTeX, and Groff man are the supported output formats, but it is easy to add new writers or modify existing ones. The markdown parser is written using a PEG grammar and can also be modified by the user. The library is as portable as lua and has very good performance.
It is roughly as fast as the author's own C library
peg-markdown,
two orders of magnitude faster than LinksExtensionsLunamark's markdown parser currently supports a number of extensions (which can be turned on or off individually), including:
See the lunamark(1) man page for a complete list. It is very easy to extend the library by modifying the writers, adding new writers, and even modifying the markdown parser. Some simple examples are given in the API documentation. BenchmarksGenerated with
This converts the input files from the original markdown test suite concatenated together 25 times.
InstallingIf you want a standalone version of lunamark that doesn't depend on lua or other lua modules being installed on your system, just do
Your executable will be created in the If you are a lua user, you will probably prefer to install lunamark using luarocks. You can install the latest development version this way:
Released versions will be uploaded to the luarocks repository, so you should be able to install them using:
There may be a short delay between the release and the luarocks upload. Using the librarySimple usage example:
For more examples, see API documentation. lunamarkThe lunadocLunamark comes with a simple lua library documentation tool, TestsThe source directory contains a large test suite in To run the tests, use
Lunamark currently fails four of the PHP Markdown tests:
The Authorslunamark is released under the MIT license. Most of the library is written by John MacFarlane. Hans Hagen made some major performance improvements. Khaled Hosny added the original ConTeXt writer. The dzslides HTML, CSS, and javascript code is by Paul Rouget, released under the DWTFYWT Public License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论