Open
Description
Suppose we use Pandoc's JSON filters, then add a new metadata property to YAML frontmatter such as filter: foo.py
, and have neuron look for the script file named ./neuron/filters/foo.py
. Then, that zettel's Pandoc representation can be passed as JSON to the script's stdin, which in turn spits out the modified Pandoc AST JSON in stdout, for neuron to use.
The goal is to allow the user to customize the what gets rendered finally. Such as, say, evaluating code blocks and injecting the results back into the Pandoc AST.
We could also support builtin filters (in Haskell), and make neuron's link processing just another Pandoc filter (which is what it is anyway, in essense).