Image Lua filter new bug? #9440
Unanswered
ricopicone
asked this question in
Q&A
Replies: 1 comment 9 replies
-
If you do
Your filter modifies the Image element but leaves it in the context of the Figure. (You probably recently upgraded to a version of pandoc with the Figure element.) What you should do is match on Figure instead, extract the image, and do roughly as before. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently upgraded to pandoc 3.1.11.1 and a trusty Lua filter (target: tex) started behaving strangely. I thought I'd ask if this is intended behavior here before reporting it as a bug. Essentially, when the
Image
filter runs, it wraps a generic figure environment around the custom version prescribed by the filter.filter.lua:
source.md:
Makefile:
index.tex:
There are two problems: (1) the generic figure environment wrapped around the custom one and (2) the identifier is not getting properly passed to the filter (but it does get used in the generic outer environment). Help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions