mdstream is a streaming CommonMark event parser for Lua.
$ luarocks install --server=https://luarocks.org/dev mdstream
root