Lua library for MDZip: pure Lua, no dependencies #14
kylemwhite
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
MDZip's fifth core library is for Lua.
mdzip-core-luareads, writes and validates.mdzfiles, and passes the same shared conformance tests from the specification as the .NET, JavaScript, Python and Rust libraries. A file written in Lua opens the same way in every other MDZip tool.Pure Lua, nothing to compile
The library is plain Lua 5.3 or 5.4 with no C modules and no dependencies. ZIP, DEFLATE, CRC-32, JSON and Unicode normalization are all built in, so it installs the same way on every platform and runs in hosts that can't load C modules, such as Pandoc's built-in Lua.
What it does
manifest.jsonthe specification requires, with the main document recorded, so other tools open the right file.nil, err, the usual Lua convention.LuaJIT and Lua 5.1, which Neovim and several game engines use, aren't supported yet.
What's next
A Pandoc reader and writer built on this library is in progress, for converting
.mdzto and from Word, EPUB, HTML and the other formats Pandoc supports.If you're adding
.mdzsupport to an app, Core libraries compares all five, and Works with MDZip shows everything that reads and writes it today.Lua on LuaRocks · Source and API reference · Release notes
The Lua logo is copyright © 1998 Lua.org, graphic design by Alexandre Nakonechnyj. Lua.org is not affiliated with and does not endorse MDZip.
All reactions