One possibility would be to pack all collected lua filters up into a single luarock, and to use the luarocks module management system to deal with downloads/updates.  This would allow the definition of dependencies on other lua packages while keeping things reasonably simple. The disadvantage is that one of the main benefits of lua filters, namely independence from other software, would be weakened.

I believe collecting filters in a central place is a very good start, either way.


On Tuesday, November 14, 2017 at 1:12:27 PM UTC+1, Kolen Cheung wrote:
While pandocpm sort of work, there's still some major changes needed. The new lua filtering system in pandoc 2.0 certainly sparks my interest in completing this tool again. e.g. we had excuses to not have our own package manager because we can rely on those existed in the language we wrote it. But since pandoc embedded the lua interpreter, the only thing needed for a lua filter is really only the filter itself (so in this case relying on some sort of lua package manager doesn't make sense). Now there's still one imperfection though, that pandocpm is written in Python. Do you think it is possible to rewrite pandocpm in lua, using only the embedded lua interpreter alone? I haven't used lua at all, but I heard that in lua there's minimal "standard library" so I'm not sure how much functionality has been embedded. From some examples you and @jgm did, there's already IO. And then pandoc certainly handles YAML (but is there YAML library available in the embedded lua interpreter? That might make it easier.) And then pandocpm only need to access the DATADIR, and I imagine it could be done to let pandoc passes it to the script?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b8cdcc3a-105a-405f-b2a2-188cdc053abb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.