Use .tag or .t (ref. https://pandoc.org/lua-filters.html#type-header).

On Tue, 31 Jan 2023 at 16:07, jcr <ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
How do I test whether a block is a Header? pandoc.utils.type(el) just returns "Block" for Header, Div, Para, etc.

I'm still using pandoc 2.19.2, if it matters.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f319694d-073d-4c4d-b447-681f3d4c21bcn%40googlegroups.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxjG-oAvWUpPnL3t0TiBtiDWmaKEoH%2BR%2BPVX3iPtJBG%2BJw%40mail.gmail.com.