essentially pandocpm is supposed to do that, in https://github.com/pandoc-extras

The development of pandocpm has stalled for various reasons (one primary reason is the change of funding starting from January so I no longer worked on a project that uses pandoc extensively, which has given me lots of time to do pandoc related stuffs in Fall semester last year).

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?

On Monday, November 13, 2017 at 11:50:05 PM UTC-8, albert.k...-stqabkCVF6SGlKaCpJGLJw@public.gmane.org wrote:
On Tuesday, November 14, 2017 at 12:37:53 AM UTC+1, Kolen Cheung wrote:
I think you nailed it ;)

Made my morning :D

May be put it somewhere as an example? (e.g. the lua filter doc.?)

There is something related, a filter to add default values if a meta value is unset: http://pandoc.org/lua-filters.html#default-metadata-file

I seem to remember that you maintained a collection of pandoc filters. Is there a repo somewhere?
 

--
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/17d771db-6489-402c-afa6-d948ca8e9cac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.