Thank you. I was about to resort to duck typing, since Header is the only element that has level (besides Chunk).
Use .tag or .t (ref. https://pandoc.org/lua-filters.html#type-header).On Tue, 31 Jan 2023 at 16:07, jcr <ffi.a...-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-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f319694d-073d-4c4d-b447-681f3d4c21bcn%40googlegroups.com.