Thank you. I was about to resort to duck typing, since Header is the only element that has level (besides Chunk). On Tuesday, January 31, 2023 at 11:39:05 AM UTC-5 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote: > Use .tag or .t (ref. https://pandoc.org/lua-filters.html#type-header). > > On Tue, 31 Jan 2023 at 16:07, jcr 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e3c3ed37-ba0e-4525-85ef-fa43c7f2e2den%40googlegroups.com.