public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Panlunatic filtering: modifying documents without external software
@ 2016-12-17 23:42 Albert Krewinkel
  0 siblings, 0 replies; only message in thread
From: Albert Krewinkel @ 2016-12-17 23:42 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hello,

writing maximally portable filters is difficult, as filters always
require additional software to be installed next to the pandoc binary.
In certain cases, this might make it impossible to use filters in
collaborative writing. I wrote a custom [panlunatic] writer, which
outputs JSON. This makes it possible to perform some minor modifications
to the document using lua, and without the need for additional software.

The script is very limited and far from exposing a user-friendly API in
the style of panflute and friends: If you want to modify an element,
you'll currently have to decode the element's JSON representation,
modify the resulting table, and re-encode the result to JSON again. It's
as ugly as it sounds. I plan to implement a nicer API in the future.

The project is in very early alpha state.  Feedback, criticism, or pull
request are welcome.

Cheers, Albert

[panlunatic]: https://github.com/tarleb/panlunatic


-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-17 23:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-17 23:42 Panlunatic filtering: modifying documents without external software Albert Krewinkel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).