Hello all,

I have written simple Pandoc filters that do some modifications on Pandoc's AST -- for example, to generate certain LaTeX environments/constructs when a Div with certain classes is used in the input file. This worked fine.

However I am not sure how to write a filter that will only make some minor changes to the output for a given writer. Here's an example: I would like to write a filter so that if an image link contains a ".framed" class, then if generating LaTeX output, the \includegraphics command should include a [frame] option (this requires the adjustbox package to work).

I am not sure how to do this without replicating all the code Pandoc already uses to write out an image link in LaTeX.

Is there a way to do this?

Best, 

Guillermo


--
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/057183b6-1f28-402c-b5be-2abd63bf9e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.