emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] using info in a filter


From: Nicolas Goaziou
Subject: Re: [O] using info in a filter
Date: Wed, 30 Mar 2016 16:02:05 +0200

Hello,

John Kitchin <address@hidden> writes:

> How does one use the info in a filter?
>
> e.g.
>
> in (defun my-block-filter (data backend info))
>
> data is the transcoded block string, and I want to add something to it
> based on say the type of block, name and header of the corresponding
> block. Is it possible to get to that from the info? Or is this a case
> where it is easier to make a custom backend with a function like:
>
> (defun sb-format (sb contents info)) that builds up the output string?

Purpose for INFO in filters is to give access to export options. You
cannot have easily access to the element being exported.

Another option is to use a parse tree filter, or as you suggest,
a custom back-end.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]