lunamark | Lua library for conversion between markup formats
kandi X-RAY | lunamark Summary
kandi X-RAY | lunamark Summary
Lunamark 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 Markdown.pl, and three orders of magnitude faster than markdown.lua.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lunamark
lunamark Key Features
lunamark Examples and Code Snippets
Community Discussions
Trending Discussions on lunamark
QUESTION
How do I generate tables with LDoc and lua-discount? Do I need some special configuration or version?
I am using LDoc to generate documentation for a game written in Lua. It works for the most part, but it uses markdown.lua which does not support markdown tables by default. So I switched it over to use lua-discount. But it still does not generate tables.
- The LDoc documentation does specify that I can use lua-discount and that it provides support for tables.
- I tried using an example table to isolate the problem.
- Calling lua-discount directly with the table yields the same result.
- Both LDoc and lua-discount were installed using luarocks without any version number.
- I tried switching to lunamark but forgot to install it, so it defaulted back to lua-discount. So I know it is detecting lua-discount.
My LDoc configuration:
...ANSWER
Answered 2019-Jun-30 at 03:41I was directed to discord.gg/code for help, and someone there noticed I was using discount differently to what was documented. It turns out there are 2 completely different versions of lua-discount! http://asbradbury.org/projects/lua-discount/ (the version from luarocks) and https://github.com/craigbarnes/lua-discount.
The version on luarocks is either outdated, or never actually had support for tables.
So to fix this problem, I had to:
- Download a forked version of the repository that uses CMake (https://github.com/squeek502/lua-discount).
- Add discount to the empty discount folder.
- Set LUA_DIR.
- Make lua-discount (worked with Visual Studio 2019 Command Prompt).
- Copy the release dll to luarocks.
- Delete discount, which was installed to Program Files.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lunamark
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page