* Include some filter examples in the data/ directory of Pandoc distribution
@ 2022-07-28 15:13 Jiří Wolker
[not found] ` <af2c4d21-7627-1402-6b13-61f7f95e64a8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jiří Wolker @ 2022-07-28 15:13 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Hello everyone,
I propose including few useful filters that process the documents
somehow in the Pandoc distribution. I think that they might be used both
for learning to use Pandoc API and for practical purposes.
Few ideas:
• includes.hs script (from the docs)
Substitute specially marked code blocks with file contents.
• A filter that adds file size to links (if enabled using attribute).
• Directory listing
The source document contains list of filenames or glob expressions
and the filter produces list of links to the files.
I will probably write few such filters soon and I could contribute them.
Jiří W.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/af2c4d21-7627-1402-6b13-61f7f95e64a8%40gmail.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Include some filter examples in the data/ directory of Pandoc distribution
[not found] ` <af2c4d21-7627-1402-6b13-61f7f95e64a8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-07-28 17:22 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2022-07-28 17:22 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
We're actually preferring Lua filters these days, because all you need to use them is pandoc itself; you don't need a working Haskell interpreter on your system.
There's a repository of sample Lua filters at pandoc/lua-filters
> On Jul 28, 2022, at 8:13 AM, Jiří Wolker <woljiri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hello everyone,
>
> I propose including few useful filters that process the documents somehow in the Pandoc distribution. I think that they might be used both for learning to use Pandoc API and for practical purposes.
>
> Few ideas:
>
> • includes.hs script (from the docs)
>
> Substitute specially marked code blocks with file contents.
>
>
> • A filter that adds file size to links (if enabled using attribute).
>
>
> • Directory listing
>
> The source document contains list of filenames or glob expressions
> and the filter produces list of links to the files.
>
>
> I will probably write few such filters soon and I could contribute them.
>
> Jiří W.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/af2c4d21-7627-1402-6b13-61f7f95e64a8%40gmail.com.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/DAC29388-5B1A-42DA-B388-52A2213B811C%40gmail.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-28 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 15:13 Include some filter examples in the data/ directory of Pandoc distribution Jiří Wolker
[not found] ` <af2c4d21-7627-1402-6b13-61f7f95e64a8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-07-28 17:22 ` John MacFarlane
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).