Hi,

I am using Text.Pandoc.Walk to transform all blocks of a certain type. This works great, except that it recurses into blocks contained inside footnotes and also applies the transformation there, which is not what I want.

What I would like is a way to stop the recursion at footnotes to prevent them from being transformed, as I have (to the best of my knowledge) no way to tell that a block is inside a footnote when I'm looking at it. However, I am struggling to do this within the structure of Text.Pandoc.Walk because the function provides no mechanisms to direct or abort recursion, and even if it did, the footnotes themselves are inlines, not blocks.

I know I could write the traversal by hand in Haskell, but is time consuming and would require much more code. Is there a better alternative?

Thanks in advance.

--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay

--
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/CAJ9X%3DkbfnfzLzD3J-yk0VgDCzPzep1fO2STyFnOSmmq14j%2BSPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.